From: Amin Bandali Date: Mon, 23 May 2022 23:29:04 +0000 (-0400) Subject: * .emacs.d/init.el (b/invert-default-face): Only invert the faces for the (selected... X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/99b2827820540e6c64accd39e4e237378aebdcbc?ds=sidebyside * .emacs.d/init.el (b/invert-default-face): Only invert the faces for the (selected-frame). --- 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)