From 334bf234e95a63cba9bb8507822a4e18fb91f50b Mon Sep 17 00:00:00 2001 From: Zelong Kuang Date: Tue, 9 Dec 2025 01:04:15 +1100 Subject: [PATCH] feat(config): Add Centaur tabs keybindings for Meow mode Enable tabs module and add keybindings for navigating Centaur tabs in Meow normal state. Map leader + w h/l to move backward/forward between tabs. Also disable everywhere and rss modules to streamline configuration. --- config.el | 5 +++++ config.org | 8 ++++++++ init.el | 6 +++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/config.el b/config.el index abe0e48..de1422b 100644 --- a/config.el +++ b/config.el @@ -70,6 +70,11 @@ (setq gptel-backend (gptel-make-gh-copilot "Copilot")) ) +(map! :map meow-normal-state-keymap + :leader "w l" 'centaur-tabs-forward) +(map! :map meow-normal-state-keymap + :leader "w h" 'centaur-tabs-backward) + (use-package! typst-ts-mode :init (add-hook 'typst-ts-mode-hook #'eglot-ensure) diff --git a/config.org b/config.org index 06aac06..86250e9 100644 --- a/config.org +++ b/config.org @@ -138,6 +138,14 @@ Thisenables the feature of auto-expanding snippets when matching the pattern #+RESULTS: : t +*** Centaur tabs +#+begin_src emacs-lisp +(map! :map meow-normal-state-keymap + :leader "w l" 'centaur-tabs-forward) +(map! :map meow-normal-state-keymap + :leader "w h" 'centaur-tabs-backward) + +#+end_src ** Lang *** Typst diff --git a/init.el b/init.el index a1987c8..0c8717b 100644 --- a/init.el +++ b/init.el @@ -43,7 +43,7 @@ ophints ; highlight the region an operation acts on (popup +defaults) ; tame sudden yet inevitable temporary windows smooth-scroll ; So smooth you won't believe it's not butter - ;; tabs ; a tab bar for Emacs + tabs ; a tab bar for Emacs ;; treemacs ; a project drawer, like neotree but cooler unicode ; extended unicode support for various languages (vc-gutter +pretty) ; vcs diff in the fringe @@ -189,9 +189,9 @@ :app ;;calendar ;;emms - everywhere ; *leave* Emacs!? You must be joking + ;; everywhere ; *leave* Emacs!? You must be joking ;;irc ; how neckbeards socialize - (rss +org +youtube) ; emacs as an RSS reader + ;; (rss +org +youtube) ; emacs as an RSS reader :config literate