get rid of automatic sidebar for now

This commit is contained in:
Jakub 2025-08-23 15:52:46 +08:00
parent c099b63414
commit f2ed02e593

View file

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