Fully embrace the mood-line
For now.
This commit is contained in:
parent
3c57ea07af
commit
6b63130e76
4 changed files with 34 additions and 26 deletions
|
|
@ -45,7 +45,7 @@ Let's turn off the menu and other settings:
|
||||||
|
|
||||||
** Mode Line
|
** Mode Line
|
||||||
Let's install and load some of packages from the [[https://github.com/hlissner/doom-emacs][Doom Emacs]] project, like [[https://github.com/seagle0128/doom-modeline][doom-modeline]] and maybe the themes:
|
Let's install and load some of packages from the [[https://github.com/hlissner/doom-emacs][Doom Emacs]] project, like [[https://github.com/seagle0128/doom-modeline][doom-modeline]] and maybe the themes:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp :tangle no
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:init
|
:init
|
||||||
(setq doom-modeline-minor-modes nil
|
(setq doom-modeline-minor-modes nil
|
||||||
|
|
@ -56,35 +56,33 @@ Let's install and load some of packages from the [[https://github.com/hlissner/d
|
||||||
doom-modeline-modal 'evil
|
doom-modeline-modal 'evil
|
||||||
doom-modeline-lsp-icon t
|
doom-modeline-lsp-icon t
|
||||||
doom-modeline-percent-position nil)
|
doom-modeline-percent-position nil)
|
||||||
(doom-modeline-mode 1))
|
(doom-modeline-mode -1))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
After reading [[https://blog.davep.org/2026/06/12/simplifying-my-mode-line.html][this essay]], I decided to try
|
After reading [[https://blog.davep.org/2026/06/12/simplifying-my-mode-line.html][this essay]], I decided to try the lighter-weight [[https://github.com/emacsmirror/mood-line][mood-line]].
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package mood-line
|
(use-package mood-line
|
||||||
:ensure t
|
:ensure t
|
||||||
:custom
|
:init
|
||||||
;; (mood-line-format mood-line-format-default)
|
(setq mood-line-glyph-alist mood-line-glyphs-fira-code
|
||||||
(setq mood-line-glyph-alist mood-line-glyphs-fira-code)
|
|
||||||
|
|
||||||
:config
|
mood-line-format
|
||||||
(mood-line-mode 1)
|
(mood-line-defformat
|
||||||
(setq mood-line-format
|
:padding ""
|
||||||
(mood-line-defformat
|
:left
|
||||||
:padding ""
|
(((mood-line-segment-modal) . " ")
|
||||||
:left
|
((mood-line-segment-anzu) . " ")
|
||||||
(((mood-line-segment-modal) . " ")
|
((mood-line-segment-buffer-status) . " ")
|
||||||
((mood-line-segment-anzu) . " ")
|
((mood-line-segment-buffer-name) . " ")
|
||||||
((mood-line-segment-buffer-status) . " ")
|
((format #(":%d" 0 2 (face mood-line-unimportant)) (line-number-at-pos)) . " ")
|
||||||
((mood-line-segment-buffer-name) . " ")
|
" ")
|
||||||
" ")
|
:right
|
||||||
:right
|
(((mood-line-segment-process) . " ")
|
||||||
(((mood-line-segment-process) . " ")
|
((mood-line-segment-major-mode) . " ")
|
||||||
((mood-line-segment-major-mode) . " ")
|
((mood-line-segment-misc-info) . " ")
|
||||||
((mood-line-segment-misc-info) . " ")
|
((mood-line-segment-vc) . " ")
|
||||||
((mood-line-segment-vc) . " ")
|
((mood-line-segment-checker) . " "))))
|
||||||
((mood-line-segment-checker) . " "))))
|
|
||||||
|
|
||||||
(setq mood-line-segment-modal-evil-state-alist
|
(setq mood-line-segment-modal-evil-state-alist
|
||||||
`((normal ,(nerd-icons-mdicon "nf-md-alpha_n_circle") . font-lock-keyword-face)
|
`((normal ,(nerd-icons-mdicon "nf-md-alpha_n_circle") . font-lock-keyword-face)
|
||||||
|
|
@ -94,6 +92,16 @@ After reading [[https://blog.davep.org/2026/06/12/simplifying-my-mode-line.html]
|
||||||
(motion ,(nerd-icons-mdicon "nf-md-alpha_m_circle") . font-lock-constant-face)
|
(motion ,(nerd-icons-mdicon "nf-md-alpha_m_circle") . font-lock-constant-face)
|
||||||
(emacs ,(nerd-icons-mdicon "nf-md-alpha_r_circle") . font-lock-constant-face))))
|
(emacs ,(nerd-icons-mdicon "nf-md-alpha_r_circle") . font-lock-constant-face))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Now, we turn it on for all modes:
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package mood-line
|
||||||
|
:config
|
||||||
|
(mood-line-mode)
|
||||||
|
(which-function-mode))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Window Dimmer
|
* Window Dimmer
|
||||||
To make the active window /more noticeable/, we /dim/ the in-active windows with the [[https://github.com/gonewest818/dimmer.el][dimmer project]].
|
To make the active window /more noticeable/, we /dim/ the in-active windows with the [[https://github.com/gonewest818/dimmer.el][dimmer project]].
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -743,7 +743,7 @@ The idea of linking org documents to email could be nice, however, the =ol-notmu
|
||||||
To use, read a message and save a link to it with ~SPC o l~. Next, in an org document, create a link with ~, l~. Now, you can return to the message from that document with ~, o~. Regardless, I may need to store a local copy when I upgrade Org.
|
To use, read a message and save a link to it with ~SPC o l~. Next, in an org document, create a link with ~, l~. Now, you can return to the message from that document with ~, o~. Regardless, I may need to store a local copy when I upgrade Org.
|
||||||
* Display Configuration
|
* Display Configuration
|
||||||
Using the [[https://github.com/seagle0128/doom-modeline][Doom Modeline]] to add notifications:
|
Using the [[https://github.com/seagle0128/doom-modeline][Doom Modeline]] to add notifications:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp :tangle no
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:config
|
:config
|
||||||
(setq doom-modeline-mu4e t))
|
(setq doom-modeline-mu4e t))
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ And a quick shortcuts to call it:
|
||||||
#+end_src
|
#+end_src
|
||||||
* Display Configuration
|
* Display Configuration
|
||||||
Using the [[https://github.com/seagle0128/doom-modeline][Doom Modeline]] to add notifications:
|
Using the [[https://github.com/seagle0128/doom-modeline][Doom Modeline]] to add notifications:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp :tangle no
|
||||||
(setq doom-modeline-irc t
|
(setq doom-modeline-irc t
|
||||||
doom-modeline-irc-stylize 'identity)
|
doom-modeline-irc-stylize 'identity)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
|
||||||
|
|
@ -722,7 +722,7 @@ Emacs has two LSP projects, and while I have used [[LSP Mode]], but since I don
|
||||||
I will want to start adding commands under my =,= mode-specific key sequence leader, but in the meantime, all LSP-related keybindings are available under ~⌘-m~. See [[https://emacs-lsp.github.io/lsp-mode/page/keybindings/][this page]] for the default keybindings.
|
I will want to start adding commands under my =,= mode-specific key sequence leader, but in the meantime, all LSP-related keybindings are available under ~⌘-m~. See [[https://emacs-lsp.github.io/lsp-mode/page/keybindings/][this page]] for the default keybindings.
|
||||||
|
|
||||||
Using the [[https://github.com/seagle0128/doom-modeline][Doom Modeline]] to add notifications:
|
Using the [[https://github.com/seagle0128/doom-modeline][Doom Modeline]] to add notifications:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp :tangle no
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:config
|
:config
|
||||||
(setq doom-modeline-lsp t
|
(setq doom-modeline-lsp t
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue