mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-15 14:51:01 -08:00
fix: trigger defcustom setters in files opened from command-line
This commit is contained in:
parent
de6a077669
commit
3256fc7fca
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue