diff --git a/lisp/doom.el b/lisp/doom.el index 71ab4fd15..22e9b7996 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -481,21 +481,6 @@ users).") (setq load-suffixes (get 'load-suffixes 'initial-value) load-file-rep-suffixes (get 'load-file-rep-suffixes 'initial-value)))) - ;; PERF: Doom uses `defcustom' merely to announce variables that users may - ;; reconfigure. Trouble is it fires off initializers meant to accommodate - ;; any user attempts to configure them *before* they are defined, which - ;; isn't possible since the user's first opportunity to modify them comes - ;; long after they're defined (in $DOOMDIR/init.el), so this is - ;; unnecessary work. To spare Emacs the startup time, I disable this - ;; behavior until $DOOMDIR is loaded. - (setq custom-dont-initialize t) - (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. (unless init-file-debug