【问题标题】:How to install flycheck in spacemacs?如何在 spacemacs 中安装 flycheck?
【发布时间】:2018-01-07 22:15:12
【问题描述】:

我正在尝试在我的 spacemacs 设置中使用 flycheck

“12.4.0.6 次要模式”下的spacemacs documentationflycheck 列为可以使用SPC t s 切换的模式。

但是,我的 spacemacs 设置中没有这样的选项。按SPC t 会引发一组不包括s 的选项。

而且,如果我还是按SPC t s,我会收到消息SPC t s is undefined

如何安装 flycheck 以与 spacemacs 一起使用?

【问题讨论】:

    标签: spacemacs flycheck


    【解决方案1】:

    Flycheck 作为syntax-checking 层的一部分提供。您需要安装该层才能使用Spc t s 键绑定。查看层文档here。要使用它,只需将 syntax-checking 添加到您的 dotspacemacs-configuration-layers 列表中,如下所示:

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

    【讨论】:

    • 这对我有用。我将syntax-checking 添加到我的.spacemacs 文件的dotspacemacs-configuration-layers 部分,重新​​启动了我的emacs——然后;保存时会弹出编译错误。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-08
    • 1970-01-01
    • 2012-04-26
    • 1970-01-01
    相关资源
    最近更新 更多