From 4e02dd746f20ed820a975079d6cd0959e8d9f0f4 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Thu, 23 Feb 2023 07:39:56 -0800 Subject: [PATCH] Add centaur tabs support. --- elisp/custom.el | 2 +- elisp/ui.el | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/elisp/custom.el b/elisp/custom.el index b32a61d..6d21915 100644 --- a/elisp/custom.el +++ b/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. diff --git a/elisp/ui.el b/elisp/ui.el index 7919697..c1455b9 100644 --- a/elisp/ui.el +++ b/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