From 9d558de528da5b76ff16b7c28f8017bf375551fa Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 26 Apr 2012 02:54:54 +0900 Subject: [PATCH] update mode-line-inactive face --- emacs.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index 0da7cb4..80c1e4e 100644 --- a/emacs.el +++ b/emacs.el @@ -399,8 +399,10 @@ return nil if LIB unfound and downloading failed, otherwise the path of LIB." (progn (require 'set-modeline-color nil t))) -(set-face-background 'mode-line-inactive (if (face-inverse-video-p 'mode-line) "white" "black")) -(set-face-foreground 'mode-line-inactive (if (face-inverse-video-p 'mode-line) "black" "white")) +(let ((fg (face-foreground 'default)) + (bg (face-background 'default))) + (set-face-background 'mode-line-inactive (if (face-inverse-video-p 'mode-line) fg bg)) + (set-face-foreground 'mode-line-inactive (if (face-inverse-video-p 'mode-line) bg fg))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; file handling