Browse Source

Add centaur tabs support.

master
Taylor Bockman 2 years ago
parent
commit
4e02dd746f
  1. 2
      elisp/custom.el
  2. 21
      elisp/ui.el

2
elisp/custom.el

@ -4,7 +4,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(lsp-pyright magit doom-modeline flycheck-indicator nord-theme powerline rainbow-delimiters python-pytest json-mode company-jedi jedi hl-defined counsel rainbow-identifiers exwm-config all-the-icons-ibuffer slime ivy zerodark-theme zerodark neotree all-the-icons paredit flycheck aggressive-indent aggressive-indent-mode lsp-python-ms py-autopep8 pyenv-mode elpy lsp-ui use-package)))
'(centaur-tabs lsp-pyright magit doom-modeline flycheck-indicator nord-theme powerline rainbow-delimiters python-pytest json-mode company-jedi jedi hl-defined counsel rainbow-identifiers exwm-config all-the-icons-ibuffer slime ivy zerodark-theme zerodark neotree all-the-icons paredit flycheck aggressive-indent aggressive-indent-mode lsp-python-ms py-autopep8 pyenv-mode elpy lsp-ui use-package)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

21
elisp/ui.el

@ -64,6 +64,7 @@
(setq nord-uniform-mode-lines t)
(load-theme 'nord t))
;; Modeline
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1)
@ -73,6 +74,26 @@
(doom-modeline-hud t)
(doom-modeline-icon t))
;; Tabs for easier more modern nav
(use-package centaur-tabs
:ensure t
:demand
:config
(centaur-tabs-mode t)
(setq centaur-tabs-set-bar 'left
;; all-the-icons support
centaur-tabs-set-icons t
centaur-tabs-gray-out-icons 'buffer
centaur-tabs-height 24
centaur-tabs-set-modified-marker t
centaur-tabs-modified-marker "")
;; This function is important to match the background to the theme.
(centaur-tabs-headline-match)
:hook
;; This hook will ignore showing tabs in certain modes
(dired-mode . centaur-tabs-local-mode)
(magit-mode . centaur-tabs-local-mode))
;; Buffer configuration
(use-package all-the-icons-ibuffer
:ensure t

Loading…
Cancel
Save