Seperate out types of modeline customisations

This commit is contained in:
TEC 2022-09-19 23:33:08 +08:00
parent 1eb15defa0
commit 0befbdb45f
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 13 additions and 4 deletions

View File

@ -3623,16 +3623,21 @@ Email and IRC.
From the =:ui modeline= module.
#+end_quote
This is very nice and pretty, however I have a few niggles with the defaults.
For starters, by default ~red~ text is used to indicate an unsaved file. This
makes me feel like something's gone /wrong/, so let's tone that down to orange.
**** Modified buffer colour
The modeline is very nice and pretty, however I have a few niggles with the
defaults. For starters, by default ~red~ text is used to indicate an unsaved file.
This makes me feel like something's gone /wrong/, so let's tone that down to
orange.
#+begin_src emacs-lisp
(custom-set-faces!
'(doom-modeline-buffer-modified :foreground "orange"))
#+end_src
While we're modifying the modeline, when we have he default file encoding (=LF
**** File encoding
While we're modifying the modeline, when we have the default file encoding (=LF
UTF-8=), it really isn't worth noting in the modeline. So, why not conditionally
hide it?
@ -3648,6 +3653,8 @@ hide it?
(add-hook 'after-change-major-mode-hook #'doom-modeline-conditional-buffer-encoding)
#+end_src
**** Time
Moving onto the modeline segments, there's a calendar icon showed next to the
current time, which I'm not a fan of. Let's replace that by redefining the
segment.
@ -3673,6 +3680,8 @@ segment.
'face (doom-modeline-face 'doom-modeline-time)))))
#+end_src
**** PDF modeline
I think the PDF modeline could do with tweaking. I raised [[https://github.com/seagle0128/doom-modeline/pull/425][an issue]] on this,
however the response was basically "put your preferences in your personal
config, the current default is sensible" --- so here we are.