mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-25 14:13:37 -05:00
Add doom-ui-mode-names for renaming major-modes
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
(set! :editorconfig :remove 'emacs-lisp-mode)
|
||||
|
||||
(defun +emacs-lisp|hook ()
|
||||
(setq mode-name "Elisp") ; [pedantry intensifies]
|
||||
(add-hook 'before-save-hook #'delete-trailing-whitespace nil t)
|
||||
|
||||
(eldoc-mode +1)
|
||||
|
@@ -10,9 +10,7 @@
|
||||
(set! :repl 'sh-mode #'+sh/repl)
|
||||
(setq sh-indent-after-continuation 'always)
|
||||
|
||||
;; [pedantry intensifies]
|
||||
(add-hook! sh-mode (setq mode-name "sh"))
|
||||
|
||||
;; sh-mode has file extensions checks for other shells, but not zsh, so...
|
||||
(defun +sh|detect-zsh ()
|
||||
(when (and buffer-file-name (string-match-p "\\.zsh\\'" buffer-file-name))
|
||||
(sh-set-shell "zsh")))
|
||||
|
Reference in New Issue
Block a user