tweak: enable startup optimizations in debug mode

Before this, startup optimizations were disabled in debug mode, but more
often than not, this just made it difficult to reproduce some errors at
startup.
This commit is contained in:
Henrik Lissner 2024-03-19 21:30:16 -04:00
parent 9447e82074
commit f71689304e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -433,7 +433,6 @@ users).")
(doom-partial #'tty-run-terminal-initialization (doom-partial #'tty-run-terminal-initialization
(selected-frame) nil t)))) (selected-frame) nil t))))
(unless init-file-debug
;; PERF,UX: Site files tend to use `load-file', which emits "Loading X..." ;; PERF,UX: Site files tend to use `load-file', which emits "Loading X..."
;; messages in the echo area. Writing to the echo-area triggers a ;; messages in the echo area. Writing to the echo-area triggers a
;; redisplay, which can be expensive during startup. This may also cause ;; redisplay, which can be expensive during startup. This may also cause
@ -529,7 +528,7 @@ users).")
(unless doom--system-macos-p (unless doom--system-macos-p
(setq command-line-ns-option-alist nil)) (setq command-line-ns-option-alist nil))
(unless (memq initial-window-system '(x pgtk)) (unless (memq initial-window-system '(x pgtk))
(setq command-line-x-option-alist nil))))) (setq command-line-x-option-alist nil))))
;; ;;