aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-05-19 09:24:01 -0700
committerGravatar Tom Willemse2026-05-19 09:24:01 -0700
commitdc7b512dbe29db8f61f1485dad4213f5c5fd2669 (patch)
tree127d975ca3b521b360f2e1431e579d8f2e849586
parent3d0eaba984a697621821aeb2f80e8c2a3dbcca96 (diff)
downloadyoshi-theme-master.tar.gz
yoshi-theme-master.zip
yoshi-mode-line: Maintain the mode-name structureHEADmaster
I just want to replace the CAR for now, I don't need to replace the CDR.
-rw-r--r--yoshi-mode-line.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/yoshi-mode-line.el b/yoshi-mode-line.el
index 840bfb9..7187f5d 100644
--- a/yoshi-mode-line.el
+++ b/yoshi-mode-line.el
@@ -77,7 +77,8 @@
((derived-mode-p '(php-mode))
(propertize mode-name 'display `(image :type svg :file ,(expand-file-name "php.svg" yoshi-mode-line-icons-dir) :ascent center :height ,(window-default-font-height))))
((derived-mode-p '(emacs-lisp-mode))
- (propertize mode-name 'display `(image :type svg :file ,(expand-file-name "emacs.svg" yoshi-mode-line-icons-dir) :ascent center :height ,(window-default-font-height))))
+ (cons (propertize (car mode-name) 'display `(image :type svg :file ,(expand-file-name "emacs.svg" yoshi-mode-line-icons-dir) :ascent center :height ,(window-default-font-height)))
+ (cdr mode-name)))
((derived-mode-p '(magit-mode))
(propertize mode-name 'display `(image :type svg :file ,(expand-file-name "magit.svg" yoshi-mode-line-icons-dir) :ascent center :height ,(window-default-font-height))))
(t