Minor refactor, reformat & comment revision
This commit is contained in:
parent
0c39e73a1e
commit
5ef94de541
5 changed files with 7 additions and 9 deletions
|
@ -402,9 +402,9 @@ conditions where a window's buffer hasn't changed at the time this hook is run."
|
|||
nil))))
|
||||
(add-hook 'org-agenda-finalize-hook #'+org|exclude-agenda-buffers-from-workspace)
|
||||
|
||||
(defun +org*exclude-agenda-buffers-from-recentf (orig-fn &rest args)
|
||||
(defun +org*exclude-agenda-buffers-from-recentf (orig-fn file)
|
||||
(let ((recentf-exclude (list (lambda (_file) t))))
|
||||
(apply orig-fn args)))
|
||||
(funcall orig-fn file)))
|
||||
(advice-add #'org-get-agenda-file-buffer
|
||||
:around #'+org*exclude-agenda-buffers-from-recentf))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue