From 7849ac4c9f99c8b62112a8ec424f28fe36b78b4b Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 12 Dec 2020 02:17:11 -0500 Subject: sh-mode: Set shellcheck as flycheck checker --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3