doomemacs/modules/module-sh.el

22 lines
699 B
EmacsLisp
Raw Normal View History

2015-09-29 02:22:26 +08:00
;;; module-sh.el --- description
(associate! sh-mode :match "/\\.dotfiles/aliases$")
(associate! sh-mode :match "/\\.?z\\(sh/.*\\|profile\\|login\\|logout\\|shrc\\|shenv\\)$")
(associate! sh-mode :match "/\\.?bash\\(/.*\\|rc\\|_profile\\)$")
(after! sh-script
2015-12-09 14:54:30 +08:00
;; [pedantry intensifies]
2015-09-29 02:22:26 +08:00
(defadvice sh-mode (after sh-mode-rename-modeline activate)
2015-12-09 14:54:30 +08:00
(setq mode-name "sh"))
2015-09-29 02:22:26 +08:00
(setq sh-indent-after-continuation 'always)
(define-repl! sh-mode narf/inf-shell)
(add-hook! sh-mode 'flycheck-mode)
(add-hook! sh-mode 'electric-indent-local-mode)
;; Fontify variables in strings
(add-hook 'sh-mode-hook 'narf|sh-extra-font-lock-activate))
2015-09-29 02:22:26 +08:00
(provide 'module-sh)
;;; module-sh.el ends here