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