From 3128b8fb9694a5ded1da0cecc456444c1891016d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 18 Feb 2021 22:31:15 -0600 Subject: Change up modeline Comment out simple-mode-line bit and .. other stuff --- config.org | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/config.org b/config.org index 5c1b300..ad872f8 100644 --- a/config.org +++ b/config.org @@ -552,7 +552,7 @@ I want the git version. *** Mode line -**** Simple modeline :package: +**** COMMENT Simple modeline :package: After trying =doom-mode-line= and =smart-mode-line=, I think I've finally landed on a good one: =simple-modeline=. @@ -581,9 +581,9 @@ landed on a good one: =simple-modeline=. (simple-modeline-mode +1) #+end_src -**** Simple modeline custom segments +***** Simple modeline custom segments -***** COMMENT Functions to figure out what window is focused +****** COMMENT Functions to figure out what window is focused How is this not built into Emacs? Oh well, I have [[https://github.com/jamesnvc/dotfiles/blob/master/emacs.d/modules/cogent-modeline.el][Cogent]] to thank. @@ -613,7 +613,7 @@ How is this not built into Emacs? Oh well, I have [[https://github.com/jamesnvc (advice-add 'select-window :after #'cogent-line-set-selected-window) #+end_src -***** Tweak =simple-modeline-segment-modified= +****** Tweak =simple-modeline-segment-modified= #+begin_src emacs-lisp :noweb-ref functions (defun acdw/modeline/modified () @@ -642,7 +642,7 @@ How is this not built into Emacs? Oh well, I have [[https://github.com/jamesnvc "_")) #+end_src -***** Easier minor-modes +****** Easier minor-modes #+begin_src emacs-lisp :noweb-ref functions (defun acdw/modeline/acdw-minions () @@ -663,7 +663,7 @@ How is this not built into Emacs? Oh well, I have [[https://github.com/jamesnvc 'mouse-face 'mode-line-highlight)) #+end_src -****** Minions mode :package: +******* Minions mode :package: The segment above requires minions-mode. @@ -672,7 +672,7 @@ The segment above requires minions-mode. (require 'minions) #+end_src -***** Shorter VC-mode segment +****** Shorter VC-mode segment #+begin_src emacs-lisp :noweb-ref functions (defun acdw/modeline/vc-status () @@ -707,7 +707,7 @@ The segment above requires minions-mode. 'mouse-face 'mode-line-highlight))))) #+end_src -***** Position in file +****** Position in file #+begin_src emacs-lisp :noweb-ref functions (defun acdw/modeline/position () @@ -770,6 +770,17 @@ But I still have to enable the mode ?! (nyan-mode +1) #+end_src +**** Mode-line faces + +#+begin_src emacs-lisp :noweb-ref linux-specific + (doremi-face-set 'mode-line + '((t (:family "Terminus" + :height 1.0)))) + (doremi-face-set 'mode-line-inactive + '((t (:family "Terminus" + :height 1.0)))) +#+end_src + *** Setting faces It took me a while to find a function that'll let me customize faces -- cgit 1.4.1-21-gabe81