2015-09-28 14:22:26 -04:00
|
|
|
;;; module-sh.el --- description
|
|
|
|
|
2016-02-11 02:08:53 -05:00
|
|
|
(use-package company-shell
|
|
|
|
:defer t
|
|
|
|
:config
|
|
|
|
(setq company-shell-delete-duplicates t))
|
|
|
|
|
2015-12-23 03:43:30 -05:00
|
|
|
(associate! sh-mode :match "/\\.dotfiles/aliases$")
|
|
|
|
(associate! sh-mode :match "/\\.?z\\(sh/.*\\|profile\\|login\\|logout\\|shrc\\|shenv\\)$")
|
|
|
|
(associate! sh-mode :match "/\\.?bash\\(/.*\\|rc\\|_profile\\)$")
|
2015-09-28 16:56:52 -04:00
|
|
|
(after! sh-script
|
2015-12-09 01:54:30 -05:00
|
|
|
;; [pedantry intensifies]
|
2015-09-28 14:22:26 -04:00
|
|
|
(defadvice sh-mode (after sh-mode-rename-modeline activate)
|
2015-12-09 01:54:30 -05:00
|
|
|
(setq mode-name "sh"))
|
2015-09-28 14:22:26 -04:00
|
|
|
|
2015-12-23 03:43:30 -05:00
|
|
|
(setq sh-indent-after-continuation 'always)
|
|
|
|
|
2015-12-14 05:19:25 -05:00
|
|
|
(define-repl! sh-mode narf/inf-shell)
|
|
|
|
(add-hook! sh-mode 'flycheck-mode)
|
2015-12-23 03:43:30 -05:00
|
|
|
(add-hook! sh-mode 'electric-indent-local-mode)
|
2015-12-14 05:19:25 -05:00
|
|
|
|
2016-02-11 02:08:53 -05:00
|
|
|
(require 'company-shell)
|
|
|
|
|
2015-12-14 05:19:25 -05:00
|
|
|
;; Fontify variables in strings
|
|
|
|
(add-hook 'sh-mode-hook 'narf|sh-extra-font-lock-activate))
|
2015-09-28 14:22:26 -04:00
|
|
|
|
|
|
|
(provide 'module-sh)
|
|
|
|
;;; module-sh.el ends here
|