Browse Source

Fix centaur-tabs hide which-key

master
Riyyi 4 years ago
parent
commit
a2aa9ad6ab
  1. 11
      .emacs.d/config.org

11
.emacs.d/config.org

@ -301,8 +301,7 @@ Places buffers as tabs in a bar at the top.
helpful-mode helpful-mode
neotree-mode neotree-mode
occur-mode occur-mode
shell-mode shell-mode)
term-mode)
. centaur-tabs-local-mode) . centaur-tabs-local-mode)
:config :config
(centaur-tabs-mode)) (centaur-tabs-mode))
@ -964,6 +963,11 @@ Functions that use package functionality.
(defun centaur-tabs-hide-tab (buffer) (defun centaur-tabs-hide-tab (buffer)
"Hide from the tab bar by BUFFER name." "Hide from the tab bar by BUFFER name."
(let ((name (format "%s" buffer))) (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 (string-match-p
(concat "^\\*\\(" (concat "^\\*\\("
"e?shell\\|" "e?shell\\|"
@ -976,7 +980,8 @@ Functions that use package functionality.
"iph\\|" ; lsp php "iph\\|" ; lsp php
"Occur" "Occur"
"\\).*") "\\).*")
name))) name)
)))
) )
(defun dashboard-goto-bookmarks () (defun dashboard-goto-bookmarks ()

Loading…
Cancel
Save