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.

50 lines
1.1 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 semantic for language-aware editing commands
(setq semantic-mode 't)
;; Nice tree
(use-package neotree
:ensure t
:commands neotree-toggle
:init (setq neo-theme (if (display-graphic-p) 'icons 'arrow))
:bind ("C-`" . neotree-toggle)
2 years ago
:requires all-the-icons)
;; 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)))
;; Theme
(use-package zerodark-theme
:ensure t
:requires all-the-icons
:config
(load-theme 'zerodark t)
(zerodark-setup-modeline-format))
;; Buffer configuration
(use-package all-the-icons-ibuffer
:ensure t
:hook (ibuffer-mode . all-the-icons-ibuffer-mode)
:requires all-the-icons)
;; Modeline configuration
(display-battery-mode 1)
(display-time-mode 1)
(column-number-mode 1)
;; Line numbers
(display-line-numbers-mode 1)