From 3da59fb2f6bcd1b5f19dc7f9a49e223dd2293e09 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 25 May 2022 22:07:33 -0500 Subject: i'm doing a terrible job --- lisp/+modeline.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lisp/+modeline.el') diff --git a/lisp/+modeline.el b/lisp/+modeline.el index 2c9bbee..33d34c3 100644 --- a/lisp/+modeline.el +++ b/lisp/+modeline.el @@ -138,6 +138,9 @@ in the cdr will be applied to the major-mode in the mode line." :type '(alist :key-type function :value-type face)) +(defface +modeline-major-mode-face nil + "Face for modeline major-mode.") + (defun +modeline-major-mode (&optional spacer) "Display the current `major-mode'." (+modeline-spacer nil spacer @@ -149,10 +152,11 @@ in the cdr will be applied to the major-mode in the mode line." ;; simply detect which mode it's in when I change major ;; modes (`change-major-mode-hook') and change the face ;; there, probably. - (catch :done (dolist (cel +modeline-major-mode-faces) - (when (derived-mode-p (car cel)) - (throw :done (cdr cel)))) - (alist-get t +modeline-major-mode-faces))) + ;; (catch :done (dolist (cel +modeline-major-mode-faces) + ;; (when (derived-mode-p (car cel)) + ;; (throw :done (cdr cel)))) + ;; (alist-get t +modeline-major-mode-faces)) + '+modeline-major-mode-face) 'keymap (let ((map (make-sparse-keymap))) (bindings--define-key map [mode-line down-mouse-1] `(menu-item "Menu Bar" ignore -- cgit 1.4.1-21-gabe81