From b28a885af90eca2fce7af35dedfd5bf0c8f7dcb4 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 23 Aug 2022 12:59:44 +0200 Subject: [PATCH] Emacs: Hide everything thats not a file from centaur-tabs --- .config/emacs/config/ui.org | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.config/emacs/config/ui.org b/.config/emacs/config/ui.org index a16e58d..12c0257 100644 --- a/.config/emacs/config/ui.org +++ b/.config/emacs/config/ui.org @@ -85,30 +85,8 @@ Places buffers as tabs in a bar at the top of the frame. (or ;; Current window is dedicated window (window-dedicated-p (selected-window)) - - ;; Buffer name does match below blacklist - (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)))) + ;; Buffer name matches below blacklist + (string-match-p "^ ?\\*.*\\*" name)))) (defun dot/centaur-tabs-is-buffer-unimportant (buffer) "Return t if BUFFER is unimportant and can be killed without caution."