Don't side tree preview buffers, revert smarter
This commit is contained in:
parent
df29b3c7c8
commit
61409ef458
1 changed files with 6 additions and 4 deletions
|
@ -75,11 +75,13 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
(defun theurgy-refresh-org-files ()
|
(defun theurgy-refresh-org-files ()
|
||||||
"Alternative to revert-all-org-buffers, which is a bit more intelligent."
|
"Revert all agenda file buffers in the background."
|
||||||
(interactive)
|
(interactive)
|
||||||
(dolist (f org-agenda-files)
|
(dolist (f org-agenda-files)
|
||||||
(with-current-buffer (find-file-noselect f t)
|
(let ((buf (find-buffer-visiting f)))
|
||||||
(revert-buffer t t))))
|
(when buf
|
||||||
|
(with-current-buffer buf
|
||||||
|
(revert-buffer :ignore-auto :noconfirm))))))
|
||||||
|
|
||||||
(theurgy-refresh-org-files)
|
(theurgy-refresh-org-files)
|
||||||
|
|
||||||
|
@ -106,7 +108,7 @@
|
||||||
|
|
||||||
;; Side tree
|
;; Side tree
|
||||||
(defun conditional-side-tree ()
|
(defun conditional-side-tree ()
|
||||||
(when (not (string-match-p "\\*capture\\*\\|CAPTURE-\\|scratch\\*" (buffer-name)))
|
(when (not (string-match-p "\\*capture\\*\\|CAPTURE-\\|scratch\\*\\|\\[Preview\\]" (buffer-name)))
|
||||||
(org-side-tree)))
|
(org-side-tree)))
|
||||||
|
|
||||||
(use-package org-side-tree
|
(use-package org-side-tree
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue