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 ()