Commit graph

7 commits

Author SHA1 Message Date
syl20bnr
cd600cad4f syntax-checking: just use flycheck default
This commit drastically simplify the previous commit by removing
the layer variable syntax-checking-check-on-buffer-change and
the associated usage of it.

This effectively make spacemacs use the default flycheck setting.
If the user wants to customize this behavior then she can modify
directly the flycheck variable.
2015-07-01 01:16:05 -04:00
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
syl20bnr
561676d675 Move flyspell and helm-flyspell to syntax-checking layer 2015-05-13 23:11:34 -04:00
syl20bnr
25961f804b syntax-checking layer: rename syntax-checking-flycheck-pos-tip
to syntax-checking-enable-tooltips

Also always install flycheck-pos-tip even if not enabled
2015-04-27 23:37:26 -04:00
Ben Hayden
a39200ef1c Add ability to disable flycheck-pos-tip
Some people don't like pop-up messages in their editing window and
prefer to keep it located in the echo area.
2015-04-27 23:32:50 -04:00
syl20bnr
90c004cb65 Update syntax-checking layer 2015-04-10 23:23:32 -04:00
syl20bnr
a4919b3eda New layer syntax-checking
Move flycheck
2015-04-10 22:23:16 -04:00