From c97dc0785f15bcd0e48b4fb7b3bd3b9b34f1dab6 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 12 Aug 2020 15:33:08 +0200 Subject: [PATCH] Hide newly created org-roam files --- .config/emacs/config.org | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 48ab5d8..46f30c7 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -1069,12 +1069,14 @@ 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 "\\(CAPTURE-\\)?" (format-time-string "%Y%m%d%H%M%S") "-.*\\.org") name) (string-match-p (concat "^\\*\\(" "e?shell\\|"