From f2ed02e593683b0432e0ef4cc13da85ebeb4f262 Mon Sep 17 00:00:00 2001 From: Jakub Date: Sat, 23 Aug 2025 15:52:46 +0800 Subject: [PATCH] get rid of automatic sidebar for now --- workflows/org-custom.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/workflows/org-custom.el b/workflows/org-custom.el index 0d1b1fc..4735e5f 100644 --- a/workflows/org-custom.el +++ b/workflows/org-custom.el @@ -108,11 +108,12 @@ ;; Side tree (defun conditional-side-tree () - (when (not (string-match-p "\\*capture\\*\\|CAPTURE-\\|scratch\\*\\|\\[Preview\\]" (buffer-name))) - (org-side-tree))) + (save-buffer (when (not (string-match-p "\\*capture\\*\\|CAPTURE-\\|scratch\\*\\|\\[Preview\\]" (buffer-name))) + (org-side-tree)))) (use-package org-side-tree - :hook ((org-modern-mode . conditional-side-tree))) + ;;:hook ((org-modern-mode . conditional-side-tree)) for now, this is broken + ) ;; Advice to display org-side-tree where we want it (defun theurgy-org-side-tree ()