2016-05-13 00:29:07 -04:00
|
|
|
;;; module-sh.el
|
2015-09-28 14:22:26 -04:00
|
|
|
|
2016-05-13 00:29:07 -04:00
|
|
|
(use-package sh-script
|
2016-05-18 22:32:04 -04:00
|
|
|
:mode (("\\.\\(ba\\|z\\)sh$" . sh-mode)
|
|
|
|
("/\\.?z\\(sh\\(/.*\\|$\\)\\|profile\\|log\\(in\\|out\\)\\|sh\\(rc\\|env\\)\\)$" . sh-mode)
|
2016-10-02 23:29:23 +02:00
|
|
|
("/\\.?bash\\(/.*\\|rc\\|_profile\\)$" . sh-mode)
|
|
|
|
("/\\.?xinitrc$" . sh-mode)
|
|
|
|
("/bspwmrc$" . sh-mode))
|
2016-12-31 03:03:22 -05:00
|
|
|
:init (add-hook! sh-mode '(flycheck-mode doom|sh-extra-font-lock-activate highlight-numbers-mode))
|
2016-05-13 00:29:07 -04:00
|
|
|
:config
|
|
|
|
(def-company-backend! sh-mode (shell))
|
2016-10-11 13:20:22 +02:00
|
|
|
(def-electric! sh-mode :words ("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
|
2016-05-20 22:37:30 -04:00
|
|
|
(def-repl! sh-mode doom/inf-shell)
|
2016-04-20 01:50:55 -04:00
|
|
|
(setq sh-indent-after-continuation 'always)
|
|
|
|
|
2016-05-13 00:29:07 -04:00
|
|
|
;; [pedantry intensifies]
|
2016-10-05 12:50:02 +02:00
|
|
|
(add-hook! sh-mode (setq mode-name "sh")))
|
2015-09-28 14:22:26 -04:00
|
|
|
|
2016-04-23 22:08:46 -04:00
|
|
|
(use-package company-shell
|
|
|
|
:after sh-script
|
|
|
|
:config (setq company-shell-delete-duplicates t))
|
|
|
|
|
2015-09-28 14:22:26 -04:00
|
|
|
(provide 'module-sh)
|
|
|
|
;;; module-sh.el ends here
|