3

I am attempting to use flycheck with my spacemacs setup.

The spacemacs documentation, under "12.4.0.6 Minor Modes" lists flycheck as a mode which can be toggled with SPC t s.

flycheck spacemacs documentation

However, no such option is present in my spacemacs setup. Pressing SPC t raises a set of options that does not include s.

spacemacs no flycheck

And, if I press SPC t s anyway, I get the message SPC t s is undefined.

How can I install flycheck to use with spacemacs?

mherzl
  • 5,624
  • 6
  • 34
  • 75

1 Answers1

6

Flycheck is provided as part of the syntax-checking layer. You need to install that layer in order to use the Spc t s keybinding. Check out the layer documentation here. To use it just add syntax-checking to your list of dotspacemacs-configuration-layers like so:

(setq-default
 dotspacemacs-configuration-layers
    '(
      syntax-checking
      )
 )
Sam Pillsworth
  • 376
  • 3
  • 6
  • 1
    This worked for me. I added `syntax-checking` to the `dotspacemacs-configuration-layers` section of my `.spacemacs` file, restarted my emacs -- and presto; compile errors pop up on save. – mherzl Jan 11 '18 at 16:16