diff --git a/emacs/init.org b/emacs/init.org index 1e51fc9..929f167 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2333,7 +2333,8 @@ UI-related keybindings: (set (make-local-variable 'centaur-tabs-projectile-buffer-group-calc) (cond - ((or (get-buffer-process (current-buffer)) (memq major-mode '(comint-mode compilation-mode))) '("Term")) + ((or (get-buffer-process (current-buffer)) + (memq major-mode '(comint-mode compilation-mode))) '("Term")) ((string-equal "*" (substring (buffer-name) 0 1)) '("Misc")) ((condition-case _err (projectile-project-root) @@ -2350,6 +2351,14 @@ UI-related keybindings: (t '("Other")))) (symbol-value 'centaur-tabs-projectile-buffer-group-calc))) + ;; Don't show tabs for certain types of buffers + (advice-add 'centaur-tabs-hide-tab :around + (lambda (oldfn buf &rest args) + (if (with-current-buffer buf + (eq major-mode 'vuiet-mode)) + t + (apply oldfn buf args)))) + ;; Only show tabs in buffers visiting files (advice-add 'centaur-tabs-line :around (lambda (oldfn &rest args)