V2 Emacs config now kept as it's own repository.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.7 KiB

2 years ago
;;; ui.el --- Specific UI definitions.
;; Disable the menubar, scrollbar, and toolbar
(menu-bar-mode -1)
(scroll-bar-mode -1)
(if window-system
(tool-bar-mode -1)
)
;; Enable column numbers
(column-number-mode 1)
;; Enable line numbers globally
(global-display-line-numbers-mode)
;; Line numbers
(display-line-numbers-mode 1)
;; Ivy
(use-package ivy
:ensure t
:config
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
(setq enable-recursive-minibuffers t)
(setq ivy-use-selectable-prompt t))
;; Swiper to replace ISearch
(use-package swiper
:ensure t
:bind (("C-s" . swiper)))
;; Counsel to force other stuff in emacs to use
;; ivy for completion
(use-package counsel
:ensure t
:config
(counsel-mode 1))
2 years ago
;; Enable semantic for language-aware editing commands
(setq semantic-mode 't)
;; Install all-the-icons and it's fonts if they are not already installed.
(use-package all-the-icons
:ensure t
:config (unless (member "all-the-icons" (font-family-list))
(all-the-icons-install-fonts t)))
2 years ago
;; Nice tree
(use-package neotree
:ensure t
:demand t
2 years ago
:commands neotree-toggle
:init (setq neo-theme (if (display-graphic-p) 'icons 'arrow))
:config
(setq neo-window-fixed-size nil)
:bind ("C-`" . neotree-toggle)
2 years ago
:requires all-the-icons)
;; Theme
(use-package nord-theme
2 years ago
:ensure t
:requires all-the-icons
:config
(setq nord-uniform-mode-lines t)
(load-theme 'nord t))
2 years ago
;; Buffer configuration
(use-package all-the-icons-ibuffer
:ensure t
:hook (ibuffer-mode . all-the-icons-ibuffer-mode)
:requires all-the-icons)
;; Modeline configuration
(use-package powerline
:ensure t
:init
(powerline-center-theme)
:custom
(powerline-gui-use-vcs-glyph t))
2 years ago
(display-battery-mode 1)
(display-time-mode 1)
(column-number-mode 1)