spacemacs/contrib/syntax-checking
Ryan Whitehurst a211dfcbf5 Allow syntax checking to happen on buffer change
Add a variable `syntax-checking-check-on-buffer-change` to the
`syntax-checking` layer which conditionally sets the variable
`flycheck-check-syntax-automatically` to:

 - `'(save mode-enabled)` when nil
 - `'(save idle-change new-line mode-enabled)` (the package default)
   when non-nil

The various settings determine when Flycheck evaluates the buffer:

 - `save` triggers a buffer check after buffer save.
 - `mode-enabled` triggers a buffer check when `flycheck-mode` is
   enabled.
 - `idle-change` triggers a buffer check after the editor has been idle
   for `flycheck-idle-change-delay`
 - `new-line` triggers a buffer check whenever a new line is inserted
   into the buffer
2015-07-01 01:14:09 -04:00
..
img Update syntax-checking layer 2015-04-10 23:23:32 -04:00
config.el Allow syntax checking to happen on buffer change 2015-07-01 01:14:09 -04:00
packages.el Allow syntax checking to happen on buffer change 2015-07-01 01:14:09 -04:00
README.org Org conversion of all READMEs ! 2015-06-11 21:31:42 -04:00

Syntax Checking configuration layer for Spacemacs

/TakeV/spacemacs/media/commit/a211dfcbf5716e565e4871908927bca93e478557/contrib/syntax-checking/img/flycheck.png

Description

This layer provides on the fly syntax and spelling checking using Flycheck and Flyspell.

Install

Layer

To use this configuration layer add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(syntax-checking))

Enabling/Disabling tooltips

By default tooltips are enabled and used whenever it is possible. You can disable them by setting the variable syntax-checking-enable-tooltips to nil:

(setq-default dotspacemacs-configuration-layers
  '((syntax-checking :variables syntax-checking-enable-tooltips nil)))

Key Bindings

Key Binding Description
SPC e c clear errors
SPC e l display a list of all the errors
SPC S c
SPC t s toggle flycheck
SPC t S toggle flyspell