From 99b2827820540e6c64accd39e4e237378aebdcbc Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 23 May 2022 19:29:04 -0400 Subject: * .emacs.d/init.el (b/invert-default-face): Only invert the faces for the (selected-frame). --- .emacs.d/init.el | 5 ++--- 1 file 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) -- cgit v1.2.3-60-g2f50