diff options
author | Alan Pearce | 2023-03-07 20:41:13 +0100 |
---|---|---|
committer | Alan Pearce | 2023-03-07 20:41:13 +0100 |
commit | 112ef458a3f3afa1ce2714c884aefaba9dfe4d2f (patch) | |
tree | f9007ff658d0d01cf07996bfdfb0c93ee889dc16 | |
parent | 23b02c2a0778e851db3671443e4129f60af7d4ed (diff) | |
download | nixfiles-112ef458a3f3afa1ce2714c884aefaba9dfe4d2f.tar.lz nixfiles-112ef458a3f3afa1ce2714c884aefaba9dfe4d2f.tar.zst nixfiles-112ef458a3f3afa1ce2714c884aefaba9dfe4d2f.zip |
Emacs: speedup modus theme toggling
-rw-r--r-- | user/emacs/init.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index f6d3b129..f03c5ffc 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -80,13 +80,13 @@ (let ((appearance (plist-get (mac-application-state) :appearance))) (mapc #'disable-theme custom-enabled-themes) (cond ((equal appearance "NSAppearanceNameAqua") - (load-theme light-mode-theme t)) + (enable-theme light-mode-theme)) ((equal appearance "NSAppearanceNameDarkAqua") - (load-theme dark-mode-theme t))))) + (enable-theme dark-mode-theme))))) (add-hook 'mac-effective-appearance-change-hook #'my/set-dark-or-light-theme) (if (fboundp #'mac-application-state) (my/set-dark-or-light-theme) - (load-theme light-mode-theme t))))) + (enable-theme light-mode-theme))))) (if (eq window-system 'x) (setq-default line-spacing 0.2)) (setq frame-background-mode 'light) |