How to install flycheck in spacemacs?

南笙酒味 提交于 2019-12-08 07:59:47

问题


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.

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

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?


回答1:


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
      )
 )


来源:https://stackoverflow.com/questions/48142050/how-to-install-flycheck-in-spacemacs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!