mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: trigger defcustom setters in files opened from command-line
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user