Emacs: Hide everything thats not a file from centaur-tabs
This commit is contained in:
@@ -85,30 +85,8 @@ Places buffers as tabs in a bar at the top of the frame.
|
|||||||
(or
|
(or
|
||||||
;; Current window is dedicated window
|
;; Current window is dedicated window
|
||||||
(window-dedicated-p (selected-window))
|
(window-dedicated-p (selected-window))
|
||||||
|
;; Buffer name matches below blacklist
|
||||||
;; Buffer name does match below blacklist
|
(string-match-p "^ ?\\*.*\\*" name))))
|
||||||
(string-match-p (concat "\\(CAPTURE-\\)?" (format-time-string "%Y%m%d%H%M%S") "-.*\\.org") name)
|
|
||||||
(string-match-p
|
|
||||||
(concat "^ ?\\*\\("
|
|
||||||
"Agenda Commands\\|"
|
|
||||||
"e?shell\\|"
|
|
||||||
"Compile-Log\\|"
|
|
||||||
"Completions\\|"
|
|
||||||
;; "clangd\\|" ; lsp c/c++
|
|
||||||
"dap-mouse\\|"
|
|
||||||
"dap-ui-\\|"
|
|
||||||
"Debug\\|"
|
|
||||||
"Faces\\|"
|
|
||||||
"Flycheck\\|"
|
|
||||||
"Help\\|"
|
|
||||||
"helpful\\|"
|
|
||||||
"httpd\\|"
|
|
||||||
"iph\\|" ; lsp php
|
|
||||||
"org-roam\\|"
|
|
||||||
"Org tags\\|"
|
|
||||||
"Org todo"
|
|
||||||
"\\).*")
|
|
||||||
name))))
|
|
||||||
|
|
||||||
(defun dot/centaur-tabs-is-buffer-unimportant (buffer)
|
(defun dot/centaur-tabs-is-buffer-unimportant (buffer)
|
||||||
"Return t if BUFFER is unimportant and can be killed without caution."
|
"Return t if BUFFER is unimportant and can be killed without caution."
|
||||||
|
|||||||
Reference in New Issue
Block a user