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.
This commit is contained in:
parent
2f9f5f37f5
commit
b882588f03
@ -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)
|
||||
" "))))
|
||||
|
||||
;; ---------------------------------- ;;
|
||||
|
Loading…
Reference in New Issue
Block a user