diff --git a/ha-display.org b/ha-display.org index 3072030..d620b82 100644 --- a/ha-display.org +++ b/ha-display.org @@ -45,7 +45,7 @@ Let's turn off the menu and other settings: ** 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: -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle no (use-package doom-modeline :init (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-lsp-icon t doom-modeline-percent-position nil) - (doom-modeline-mode 1)) + (doom-modeline-mode -1)) #+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 (use-package mood-line :ensure t - :custom - ;; (mood-line-format mood-line-format-default) - (setq mood-line-glyph-alist mood-line-glyphs-fira-code) + :init + (setq mood-line-glyph-alist mood-line-glyphs-fira-code - :config - (mood-line-mode 1) - (setq mood-line-format - (mood-line-defformat - :padding "" - :left - (((mood-line-segment-modal) . " ") - ((mood-line-segment-anzu) . " ") - ((mood-line-segment-buffer-status) . " ") - ((mood-line-segment-buffer-name) . " ") - " ") - :right - (((mood-line-segment-process) . " ") - ((mood-line-segment-major-mode) . " ") - ((mood-line-segment-misc-info) . " ") - ((mood-line-segment-vc) . " ") - ((mood-line-segment-checker) . " ")))) + mood-line-format + (mood-line-defformat + :padding "" + :left + (((mood-line-segment-modal) . " ") + ((mood-line-segment-anzu) . " ") + ((mood-line-segment-buffer-status) . " ") + ((mood-line-segment-buffer-name) . " ") + ((format #(":%d" 0 2 (face mood-line-unimportant)) (line-number-at-pos)) . " ") + " ") + :right + (((mood-line-segment-process) . " ") + ((mood-line-segment-major-mode) . " ") + ((mood-line-segment-misc-info) . " ") + ((mood-line-segment-vc) . " ") + ((mood-line-segment-checker) . " ")))) (setq mood-line-segment-modal-evil-state-alist `((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) (emacs ,(nerd-icons-mdicon "nf-md-alpha_r_circle") . font-lock-constant-face)))) #+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 To make the active window /more noticeable/, we /dim/ the in-active windows with the [[https://github.com/gonewest818/dimmer.el][dimmer project]]. diff --git a/ha-email.org b/ha-email.org index 9410517..388ac82 100644 --- a/ha-email.org +++ b/ha-email.org @@ -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. * Display Configuration 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 :config (setq doom-modeline-mu4e t)) diff --git a/ha-irc.org b/ha-irc.org index 0ea7fb9..a7b7135 100644 --- a/ha-irc.org +++ b/ha-irc.org @@ -121,7 +121,7 @@ And a quick shortcuts to call it: #+end_src * Display Configuration 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 doom-modeline-irc-stylize 'identity) #+end_src diff --git a/ha-programming.org b/ha-programming.org index 6f7a7d7..664b59f 100644 --- a/ha-programming.org +++ b/ha-programming.org @@ -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. 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 :config (setq doom-modeline-lsp t