syntax-checking: add binding for `flycheck-disable-checker`

This commit is contained in:
Lucius Hu 2022-07-13 18:12:01 -04:00
parent 35cf3df3dc
commit 09698dc8fa
No known key found for this signature in database
GPG Key ID: 7E474E82E29B5A7A
2 changed files with 12 additions and 10 deletions

View File

@ -127,6 +127,7 @@ and =syntax-checking-window-height= for width and height respectively.
|-------------+--------------------------------------------------------------|
| ~SPC e b~ | check for errors now |
| ~SPC e c~ | clear errors |
| ~SPC e d~ | disable a checker in current buffer |
| ~SPC e h~ | describe flycheck checker |
| ~SPC e l~ | display a list of all the errors |
| ~SPC e L~ | display a list of all the errors and focus the errors buffer |

View File

@ -41,16 +41,17 @@
flycheck-global-modes nil)
;; key bindings
(spacemacs/set-leader-keys
"eb" 'flycheck-buffer
"ec" 'flycheck-clear
"eh" 'flycheck-describe-checker
"el" 'spacemacs/toggle-flycheck-error-list
"eL" 'spacemacs/goto-flycheck-error-list
"es" 'flycheck-select-checker
"eS" 'flycheck-set-checker-executable
"ev" 'flycheck-verify-setup
"ey" 'flycheck-copy-errors-as-kill
"ex" 'flycheck-explain-error-at-point)
"eb" #'flycheck-buffer
"ec" #'flycheck-clear
"ed" #'flycheck-disable-checker
"eh" #'flycheck-describe-checker
"el" #'spacemacs/toggle-flycheck-error-list
"eL" #'spacemacs/goto-flycheck-error-list
"es" #'flycheck-select-checker
"eS" #'flycheck-set-checker-executable
"ev" #'flycheck-verify-setup
"ey" #'flycheck-copy-errors-as-kill
"ex" #'flycheck-explain-error-at-point)
(spacemacs|add-toggle syntax-checking
:mode flycheck-mode
:documentation "Enable error and syntax checking."