fix: disable non-essential startup optimizations in debug-mode
As to not interfere with debugging.
This commit is contained in:
parent
7aa87eb019
commit
6eab48641f
1 changed files with 71 additions and 70 deletions
|
@ -390,6 +390,7 @@ 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
|
||||||
|
@ -464,7 +465,7 @@ users).")
|
||||||
(unless IS-MAC
|
(unless IS-MAC
|
||||||
(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)))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue