Don't show centaur tabs for vuiet info buffers
This commit is contained in:
parent
bafebe5fb7
commit
226870e203
@ -2333,7 +2333,8 @@ UI-related keybindings:
|
|||||||
(set (make-local-variable 'centaur-tabs-projectile-buffer-group-calc)
|
(set (make-local-variable 'centaur-tabs-projectile-buffer-group-calc)
|
||||||
|
|
||||||
(cond
|
(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"))
|
((string-equal "*" (substring (buffer-name) 0 1)) '("Misc"))
|
||||||
((condition-case _err
|
((condition-case _err
|
||||||
(projectile-project-root)
|
(projectile-project-root)
|
||||||
@ -2350,6 +2351,14 @@ UI-related keybindings:
|
|||||||
(t '("Other"))))
|
(t '("Other"))))
|
||||||
(symbol-value 'centaur-tabs-projectile-buffer-group-calc)))
|
(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
|
;; Only show tabs in buffers visiting files
|
||||||
(advice-add 'centaur-tabs-line :around
|
(advice-add 'centaur-tabs-line :around
|
||||||
(lambda (oldfn &rest args)
|
(lambda (oldfn &rest args)
|
||||||
|
Loading…
Reference in New Issue
Block a user