Skip to content

Commit

Permalink
Add centaur-tabs to get pretty tabs. Fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Oct 7, 2023
1 parent e17b1b4 commit cbf5498
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,35 @@ To make Emacs better looking, I use the leuven-theme. This theme improves org-mo
(doom-modeline-mode 1))
#+END_SRC


Recently I also started using tabs with the centaur-tabs package:
#+BEGIN_SRC emacs-lisp
;; Unset the default behavior of the C-x <left> and <right> arrow key navigation
(global-unset-key (kbd "C-x <left>"))
(global-unset-key (kbd "C-x <right>"))

(use-package centaur-tabs
:after (dashboard org)

:config
(centaur-tabs-group-by-projectile-project)
(centaur-tabs-mode 1)

:custom
(centaur-tabs-set-icons t)
(centaur-tabs-plain-icons t)
(centaur-tabs-set-modified-marker t)

:bind
(("C-x <left>" . centaur-tabs-backward-tab)
("C-x <right>" . centaur-tabs-forward-tab))

;; TODO: EXWM buffers
:hook
((dashboard-mode . centaur-tabs-local-mode)
(org-src-mode . centaur-tabs-local-mode)))
#+END_SRC

*** try
Sometimes I like to try packages without having them as a permanent part of my Emacs setup. try does exactly that, where the packages are gone after Emacs is closed.

Expand Down

0 comments on commit cbf5498

Please sign in to comment.