Fix centaur-tabs hide which-key

This commit is contained in:
Riyyi
2020-07-31 17:22:23 +02:00
parent 0912f077d0
commit a2aa9ad6ab
+8 -3
View File
@@ -301,8 +301,7 @@ Places buffers as tabs in a bar at the top.
helpful-mode
neotree-mode
occur-mode
shell-mode
term-mode)
shell-mode)
. centaur-tabs-local-mode)
:config
(centaur-tabs-mode))
@@ -964,6 +963,11 @@ Functions that use package functionality.
(defun centaur-tabs-hide-tab (buffer)
"Hide from the tab bar by BUFFER name."
(let ((name (format "%s" buffer)))
(or
;; Current window is dedicated window
(window-dedicated-p (selected-window))
;; Buffer name does match below blacklist
(string-match-p
(concat "^\\*\\("
"e?shell\\|"
@@ -976,7 +980,8 @@ Functions that use package functionality.
"iph\\|" ; lsp php
"Occur"
"\\).*")
name)))
name)
)))
)
(defun dashboard-goto-bookmarks ()