summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index e6c6a14..ae6afba 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -436,9 +436,8 @@ Make N (default: 1) copies of the current line or region."
"Invert the `default' face (swap its background and foreground).
Effectively a very simple light/dark theme toggle switch."
(interactive)
- (invert-face 'default)
- (when (display-graphic-p)
- (invert-face 'mode-line)))
+ (invert-face 'default (selected-frame))
+ (invert-face 'mode-line (selected-frame)))
(defun b/export-frame ()
(interactive)