No longer auto-update term theme with emacs theme

This commit is contained in:
TEC 2022-01-15 03:54:47 +08:00
parent 405a6f4cff
commit e64d2373e7
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 0 additions and 12 deletions

View File

@ -2224,18 +2224,6 @@ lightened versions --- let's do that.
(face-attribute 'default :foreground))))
#+end_src
Let's automatically update terminals on theme change (as long as ~pywal~ is available).
Unfortunately, as the theme is set on startup this causes the hook to be run
immediately. It would be nicer to /not/ have this add to our precious startup
time (around 0.4s last time I checked).
We can achieve this by deferring it with a short idle timer that should add the
hook /just after/ initialisation.
#+begin_src emacs-lisp :tangle (if (executable-find "wal") "yes" "no")
(run-with-idle-timer 0.1 nil (lambda () (add-hook 'doom-load-theme-hook 'theme-magic-from-emacs)))
#+end_src
*** Emojify
#+begin_quote
From the =:ui emoji= module.