Change flycheck initialization strategy
Initialize it globally and turn it off where needed, instead of enabling it on demand. Also fixes void-function: flycheck-mode errors when :feature syntax-checker is disabled. This is experimental. Indirectly fixes #710
This commit is contained in:
parent
dbc7b667cf
commit
e05d7cfee0
24 changed files with 26 additions and 49 deletions
|
@ -15,7 +15,7 @@
|
|||
:mode ("\\.zunit\\'" . sh-mode)
|
||||
:mode ("/bspwmrc\\'" . sh-mode)
|
||||
:config
|
||||
(add-hook! sh-mode #'(flycheck-mode highlight-numbers-mode))
|
||||
(add-hook 'sh-mode-hook #'highlight-numbers-mode)
|
||||
(set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
|
||||
(set-repl-handler! 'sh-mode #'+sh/repl)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue