From a72565a0b4541d40a71778d54f1c4c9a3f124b53 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 14 Feb 2020 15:14:56 -0500 Subject: [PATCH] Add centaur-tabs --- emacs/init.org | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index 2da6ff9..f6a6bfc 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2126,6 +2126,42 @@ UI-related keybindings: (leader-def-key "ub" #'display-battery-mode) #+END_SRC +* Centaur tabs +[[https://github.com/ema2159/centaur-tabs][Centaur tabs]] is a package that gives Emacs buffer tabs similar to those in Atom or VS Code: +#+BEGIN_SRC emacs-lisp + (use-package centaur-tabs + :commands (centaur-tabs-mode) + :init + (setq centaur-tabs-set-icons t + centaur-tabs-gray-out-icons 'buffer + centaur-tabs-height 32 + centaur-tabs-set-bar 'under + x-underline-at-descent-line t + centaur-tabs-set-modified-marker t + centaur-tabs-show-navigation-buttons t + centaur-tabs-down-tab-text " ☰ " + centaur-tabs-backward-tab-text " ◀ " + centaur-tabs-forward-tab-text " ▶ " + centaur-tabs-close-button "✕" + centaur-tabs-modified-marker "⬤") + (leader-def-key "uT" #'centaur-tabs-mode) + (centaur-tabs-mode) + :config + (centaur-tabs-group-by-projectile-project) + :general + ((normal motion visual) "g t" #'centaur-tabs-forward) + ((normal motion visual) "g T" #'centaur-tabs-backward) + :hook + (imenu-list-major-mode . centaur-tabs-local-mode) + (dashboard-mode . centaur-tabs-local-mode) + (git-commit-mode . centaur-tabs-local-mode) + (eshell-mode . centaur-tabs-local-mode) + (vterm-mode . centaur-tabs-local-mode) + (shell-mode . centaur-tabs-local-mode) + (term-mode . centaur-tabs-local-mode) + (inferior-python-mode . centaur-tabs-local-mode)) +#+END_SRC + * Frame parameters Functions to change the frame size: #+BEGIN_SRC emacs-lisp