From: rush Date: Wed, 24 Jun 2026 17:50:49 +0000 (-0400) Subject: Move minions setup and call to /after/ the modeline customizations X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=24eca9775a99e348f06d082bb55630059f88c85b;p=emacsinit.git Move minions setup and call to /after/ the modeline customizations Even re-using the default mode caller overwrites what minions mode does. --- diff --git a/config.org b/config.org index 8bd75a4..4690d64 100644 --- a/config.org +++ b/config.org @@ -421,14 +421,6 @@ Shows the trash file as a dired buffer (:maildir "/Trash" :key ?t) (:maildir "/Drafts" :key ?d))))) #+END_SRC -** Minions -Remove all minor modes from the mode-line, and show /all/ of them in the minor mode menu -#+BEGIN_SRC emacs-lisp -(require 'minions) - -(setq minions-mode-line-lighter "|+") -(minions-mode 1) -#+END_SRC * Load libraries Libraries Not from the package manager #+BEGIN_SRC emacs-lisp @@ -910,8 +902,12 @@ Stolen from https://www.masteringemacs.org/article/fixing-mark-commands-transien mouse-autoselect-window -0.25) (setq-default cursor-type 'hbar - cursor-in-non-selected-windows nil - mode-line-format '("%e" + cursor-in-non-selected-windows nil) +#+END_SRC +** Modeline +*** Format +#+BEGIN_SRC emacs-lisp +(setq-default mode-line-format '("%e" (:eval (propertize " " 'face (when (buffer-modified-p) @@ -920,9 +916,9 @@ Stolen from https://www.masteringemacs.org/article/fixing-mark-commands-transien (:eval (if buffer-file-name (abbreviate-file-name buffer-file-name) "%b")) - ":%l,%C" - (:eval (propertize "%n " 'face (when (buffer-narrowed-p) - 'mode-line-highlight))) + ":%l,%C " + ;; (:eval (propertize "%n " 'face (when (buffer-narrowed-p) + ;; 'mode-line-highlight))) mode-line-format-right-align (vc-mode vc-mode) " " @@ -939,6 +935,14 @@ Stolen from https://www.masteringemacs.org/article/fixing-mark-commands-transien (global-prettify-symbols-mode t) #+END_SRC +*** Minions +Remove all minor modes from the mode-line, and show /all/ of them in the minor mode menu. Must come after any modeline customization +#+BEGIN_SRC emacs-lisp +(require 'minions) +(minions-mode) + +(setq minions-mode-line-lighter "|+") +#+END_SRC * Parens Must be set after loading any theme #+BEGIN_SRC emacs-lisp