fix(emacs-lisp): 'defining as dynamic an already lexical var' error

Fix: #7653
Amend: 3bea4f66a8
This commit is contained in:
Henrik Lissner 2024-02-07 00:01:34 -05:00
parent 2fb0bf98ae
commit a5ff292cbd
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -228,6 +228,8 @@ See `+emacs-lisp-non-package-mode' for details.")
;; expensive functionality, this will often introduce unexpected freezes
;; without this advice.
;; TODO: PR upstream?
(defvar org-inhibit-startup)
(defvar org-mode-hook)
(defadvice! +emacs-lisp--optimize-org-init-a (fn &rest args)
"Disable unrelated functionality to optimize calls to `org-mode'."
:around #'elisp-demos--export-json-file