From: Amin Bandali Date: Fri, 6 Sep 2019 16:15:10 +0000 (-0400) Subject: emacs: refresh exwm systemtray after changing theme X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/b0b341898d6649882e3d9f9dbdc5af1937168af8?hp=fa9943dccbfd6cd3d7cefa8777e340e9d0b686b4 emacs: refresh exwm systemtray after changing theme (to have the tray’s background colour match the theme’s) --- diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4355ad6..d6c94f8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1481,7 +1481,8 @@ This function is intended for use with `ivy-ignore-buffers'." (load-theme 'tangomod t) (sml/apply-theme 'automatic) (font-lock-remove-keywords - 'org-mode b/org-mode-font-lock-keywords)) + 'org-mode b/org-mode-font-lock-keywords) + (exwm-systemtray--refresh)) (defun b/lights-off () "Go dark." @@ -1490,7 +1491,8 @@ This function is intended for use with `ivy-ignore-buffers'." (load-theme 'doom-tomorrow-night t) (sml/apply-theme 'automatic) (font-lock-add-keywords - 'org-mode b/org-mode-font-lock-keywords t)) + 'org-mode b/org-mode-font-lock-keywords t) + (exwm-systemtray--refresh)) (bind-keys ("C-c t d" . b/lights-off)