From acb57343a0c55e75638fb02bf5c1aa607205953b Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Thu, 29 Dec 2022 09:08:28 -0500 Subject: [PATCH] Add encoding face for indentation segment This face will also be used to decorate other encoding-related segments in the future. --- mood-line-segment-indentation.el | 2 +- mood-line.el | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mood-line-segment-indentation.el b/mood-line-segment-indentation.el index b2e8bff..3ec1eee 100644 --- a/mood-line-segment-indentation.el +++ b/mood-line-segment-indentation.el @@ -204,7 +204,7 @@ order provided)." tab-width (or mode-offset tab-width)))) " ") - 'face 'mood-line-unimportant))) + 'face 'mood-line-encoding))) ;; -------------------------------------------------------------------------- ;; ;; diff --git a/mood-line.el b/mood-line.el index f2db691..12e13a6 100644 --- a/mood-line.el +++ b/mood-line.el @@ -305,6 +305,11 @@ The `Face' may be either a face symbol or a property list of key-value pairs "Face for error status indicators." :group 'mood-line-faces) +(defface mood-line-encoding + '((t (:inherit (shadow) :weight normal))) + "Face used for buffer/file encoding information." + :group 'mood-line-faces) + (defface mood-line-unimportant '((t (:inherit (shadow) :weight normal))) "Face used for less important mode line elements."