Fix #4745: defining as dynamic an already lexical var

If a dynamic variable is first defined in the same scope where it is
lexically bound, you get this error.
This commit is contained in:
Henrik Lissner 2021-03-07 13:04:24 -05:00
parent f6de662011
commit 5069d95b42

View file

@ -637,6 +637,7 @@ can grow up to be fully-fledged org-mode buffers."
(add-hook 'doom-switch-buffer-hook #'+org--restart-mode-h
nil 'local)))))
(defvar recentf-exclude)
(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