From b882588f03dab1ae1e2dc533f28d5e91b7d1ae7d Mon Sep 17 00:00:00 2001 From: Alynx Zhou Date: Sat, 31 Dec 2022 13:24:54 +0800 Subject: [PATCH] Stop setting unimportant face to cursor point and misc info Currently we add unimportant face to cursor point, however this looks inconsist, that cursor point and position has different color compared with cursor coordinate, and it won't dim if window is inactive. This also breaks packages that adds text with custom face into misc info like lsp-bridge, because we also override it with unimportant face. This commit will unify text style by remove unimportant face for them. --- mood-line.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mood-line.el b/mood-line.el index 0c5ff47..4eb7c3a 100644 --- a/mood-line.el +++ b/mood-line.el @@ -777,10 +777,8 @@ Checkers checked, in order: `flycheck', `flymake'." "Display the position of the cursor in the current buffer." (concat "%l:%c" (when mood-line-show-cursor-point - (propertize (format ":%d" (point)) - 'face 'mood-line-unimportant)) - (propertize " %p%% " - 'face 'mood-line-unimportant))) + (format ":%d" (point))) + " %p%% ")) ;; ---------------------------------- ;; ;; EOL segment @@ -831,8 +829,7 @@ Checkers checked, in order: `flycheck', `flymake'." "Display the current value of `mode-line-misc-info'." (let ((misc-info (format-mode-line mode-line-misc-info))) (unless (string-blank-p misc-info) - (concat (propertize (string-trim misc-info) - 'face 'mood-line-unimportant) + (concat (string-trim misc-info) " ")))) ;; ---------------------------------- ;;