Add doom-ui-mode-names for renaming major-modes

This commit is contained in:
Henrik Lissner 2017-05-28 16:12:28 +02:00
parent 5638f509a2
commit e8d454a251
4 changed files with 16 additions and 5 deletions

View file

@ -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")))