fix: disable non-essential startup optimizations in debug-mode

As to not interfere with debugging.
This commit is contained in:
Henrik Lissner 2022-10-02 18:15:42 +02:00
parent 7aa87eb019
commit 6eab48641f
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -390,6 +390,7 @@ users).")
(doom-partial #'tty-run-terminal-initialization
(selected-frame) nil t))))
(unless init-file-debug
;; 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
;; redisplay, which can be expensive during startup. This may also cause
@ -464,7 +465,7 @@ users).")
(unless IS-MAC
(setq command-line-ns-option-alist nil))
(unless (memq initial-window-system '(x pgtk))
(setq command-line-x-option-alist nil))))
(setq command-line-x-option-alist nil)))))
;;