Don't show side tree in some buffers
This commit is contained in:
parent
c92671f0c8
commit
900f8dd438
1 changed files with 5 additions and 1 deletions
|
@ -94,8 +94,12 @@
|
|||
org-mode)
|
||||
|
||||
;; Side tree
|
||||
(defun conditional-side-tree ()
|
||||
(when (not (string-match-p "\\*capture\\*\\|CAPTURE-\\|scratch\\*" (buffer-name)))
|
||||
(org-side-tree)))
|
||||
|
||||
(use-package org-side-tree
|
||||
:hook ((org-modern-mode . org-side-tree)))
|
||||
:hook ((org-modern-mode . conditional-side-tree)))
|
||||
|
||||
;; Advice to display org-side-tree where we want it
|
||||
(defun theurgy-org-side-tree ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue