From 3256fc7fca470f5ea3b9cbe4684c5a168b907e83 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 11 Sep 2024 15:05:01 -0400 Subject: [PATCH] fix: trigger defcustom setters in files opened from command-line --- lisp/doom.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/doom.el b/lisp/doom.el index c85ffbc21..9e9873ddd 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -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.