fix: trigger defcustom setters in files opened from command-line

This commit is contained in:
Henrik Lissner 2024-09-11 15:05:01 -04:00
parent de6a077669
commit 3256fc7fca
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -470,6 +470,9 @@ users).")
(add-hook! 'doom-before-init-hook
(defun doom--reset-custom-dont-initialize-h ()
(setq custom-dont-initialize nil)))
(define-advice command-line-1 (:around (fn args-left) respect-defcustom-setters)
(let ((custom-dont-initialize nil))
(funcall fn args-left)))
;; These optimizations are brittle, difficult to debug, and obscure other
;; issues, so bow out when debug mode is on.