Add centaur-tabs

This commit is contained in:
Jeremy Dormitzer 2020-02-14 15:14:56 -05:00
parent ac657449ad
commit a72565a0b4

View File

@ -2126,6 +2126,42 @@ UI-related keybindings:
(leader-def-key "ub" #'display-battery-mode) (leader-def-key "ub" #'display-battery-mode)
#+END_SRC #+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 * Frame parameters
Functions to change the frame size: Functions to change the frame size:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp