summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-12-12 02:17:11 -0500
committerKyle Meyer <kyle@kyleam.com>2020-12-12 02:17:37 -0500
commit7849ac4c9f99c8b62112a8ec424f28fe36b78b4b (patch)
tree3e516d9f3d0efac2dec5d2561d5cf036c289c5b5
parent852f16992c54630bb982b761a6051fd49d27de9f (diff)
downloademacs.d-7849ac4c9f99c8b62112a8ec424f28fe36b78b4b.tar.gz
sh-mode: Set shellcheck as flycheck checker
-rw-r--r--init.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.el b/init.el
index 6ea74e1..775e7f5 100644
--- a/init.el
+++ b/init.el
@@ -1891,7 +1891,11 @@
(use-package sh-script
:config
- (add-hook 'sh-mode-hook #'flyspell-prog-mode))
+ (add-hook 'sh-mode-hook #'flyspell-prog-mode)
+ (add-hook 'sh-mode-hook
+ (lambda ()
+ (setq flycheck-checker 'sh-shellcheck)
+ (flycheck-mode 1))))
(use-package python
:init