mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(emacs-lisp): only set mode-name in elisp buffers
And not emacs-lisp-mode derived modes.
This commit is contained in:
@ -68,7 +68,7 @@ See `+emacs-lisp-non-package-mode' for details.")
|
||||
;; As of Emacs 28+, `emacs-lisp-mode' uses a shorter label in the mode-line
|
||||
;; ("ELisp/X", where X = l or d, depending on `lexical-binding'). In <=27,
|
||||
;; it uses "Emacs-Lisp". The former is more useful, so I backport it:
|
||||
(setq-hook! 'emacs-lisp-mode-hook
|
||||
(setq-hook! 'emacs-lisp-mode-local-vars-hook
|
||||
mode-name `("ELisp"
|
||||
(lexical-binding (:propertize "/l"
|
||||
help-echo "Using lexical-binding mode")
|
||||
|
Reference in New Issue
Block a user