fix: guard tty-run-terminal-initialization against GUI sessions
This commit is contained in:
parent
aa53ad2c1b
commit
f34e91d3b9
1 changed files with 6 additions and 5 deletions
11
lisp/doom.el
11
lisp/doom.el
|
@ -371,11 +371,12 @@ users).")
|
||||||
;; startup doesn't appear to affect it if it's called a little later in
|
;; startup doesn't appear to affect it if it's called a little later in
|
||||||
;; the startup process, so that's what I do.
|
;; the startup process, so that's what I do.
|
||||||
;; REVIEW: This optimization is not understood. Investigate this properly!
|
;; REVIEW: This optimization is not understood. Investigate this properly!
|
||||||
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
(unless initial-window-system
|
||||||
(add-hook! 'window-setup-hook
|
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
||||||
(defun doom--reset-tty-run-terminal-initialization-h ()
|
(add-hook! 'window-setup-hook
|
||||||
(advice-remove #'tty-run-terminal-initialization #'ignore)
|
(defun doom--reset-tty-run-terminal-initialization-h ()
|
||||||
(tty-run-terminal-initialization (selected-frame) nil t)))
|
(advice-remove #'tty-run-terminal-initialization #'ignore)
|
||||||
|
(tty-run-terminal-initialization (selected-frame) nil t))))
|
||||||
|
|
||||||
;; 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue