lang/org: optimize org-agenda (part 2) #2672

This commit is contained in:
Henrik Lissner 2020-08-21 19:08:46 -04:00
parent d5e64d0586
commit e86ecf60c9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -598,7 +598,9 @@ buffers."
(defadvice! +org--exclude-agenda-buffers-from-recentf-a (orig-fn file)
"Prevent temporarily opened agenda buffers from polluting recentf."
:around #'org-get-agenda-file-buffer
(let ((recentf-exclude (list (lambda (_file) t))))
(let ((recentf-exclude (list (lambda (_file) t)))
(doom-large-file-p t)
find-file-hook)
(funcall orig-fn file)))
;; HACK With https://code.orgmode.org/bzg/org-mode/commit/48da60f4, inline