From 6206202d35515cdb501f5d34196ba652eefb4ca9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 5 Oct 2016 08:13:40 +0200 Subject: [PATCH] Remove doom-modeline-alternate face (unused); don't compile bars --- core/core-modeline.el | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/core/core-modeline.el b/core/core-modeline.el index c3af377b6..863f8820e 100644 --- a/core/core-modeline.el +++ b/core/core-modeline.el @@ -45,15 +45,12 @@ '((t (:inherit doom-modeline-buffer-path :bold nil))) "Face used for the filename part of the mode-line buffer path.") -(defface doom-modeline-buffer-modified '((t (:inherit highlight))) +(defface doom-modeline-buffer-modified '((t (:inherit highlight :background nil))) "Face used for the 'unsaved' symbol in the mode-line.") (defface doom-modeline-major-mode '((t (:inherit mode-line :bold t))) "Face used for the major-mode segment in the mode-line.") -(defface doom-modeline-alternate '((t (:inherit mode-line))) - "Secondary color for the modeline.") - (defface doom-modeline-highlight '((t (:inherit mode-line))) "Face for bright segments of the mode-line.") @@ -161,16 +158,14 @@ project root). Excludes the file basename. See `doom-buffer-name' for that." ;; (defconst &bar-active - (eval-when-compile - (doom-make-xpm (face-background 'doom-modeline-bar) - doom-modeline-height - doom-modeline-bar-width))) + (doom-make-xpm (face-background 'doom-modeline-bar) + doom-modeline-height + doom-modeline-bar-width)) (defconst &bar-inactive - (eval-when-compile - (doom-make-xpm (face-background 'doom-modeline-inactive-bar) - doom-modeline-height - doom-modeline-bar-width))) + (doom-make-xpm (face-background 'mode-line-inactive) + doom-modeline-height + doom-modeline-bar-width)) (defun *buffer-project () "Displays `default-directory', for special buffers like the scratch buffer." @@ -203,7 +198,6 @@ directory, the file name, and its state (modified, read-only or non-existent)." :face 'doom-modeline-urgent :v-adjust -0.05) " ")) - (propertize (doom-buffer-path) 'face `(inherit (,(if modified-p 'doom-modeline-buffer-modified) ,(if active 'doom-modeline-buffer-path))))