Emacs 未正确配置Flycheck Google Cpplint
我正在尝试在我的emacs中安装flycheck谷歌cpplint。但我得到了这个错误:Emacs 未正确配置Flycheck Google Cpplint,emacs,flycheck,cpplint,Emacs,Flycheck,Cpplint,我正在尝试在我的emacs中安装flycheck谷歌cpplint。但我得到了这个错误: (flycheck-mode 1) (eval-after-load 'flycheck '(progn (require 'flycheck-google-cpplint) (flycheck-add-next-checker 'c/c++-cppcheck 'c/c++-googlelint 'append))) (cu
(flycheck-mode 1)
(eval-after-load 'flycheck
'(progn
(require 'flycheck-google-cpplint)
(flycheck-add-next-checker 'c/c++-cppcheck
'c/c++-googlelint 'append)))
(custom-set-variables
'(flycheck-googlelint-verbose "3")
'(flycheck-googlelint-filter "-whitespace,+whitespace/braces"))
但这是行不通的。我得到以下错误:
Error: (user-error "Configured syntax checker c/c++-googlelint cannot be used")
我不知道为什么。我安装了cpplint,如果从命令行使用它,它可以正常工作。有什么建议吗?flycheck谷歌lint使用cpplint。为了运行语法检查,您必须告诉emacs在哪里可以找到cpplint.py可执行文件 您可以找到cpplint文件 然后,您需要将其添加到init emacs文件中:
(custom-set-variables
'(flycheck-c/c++-googlelint-executable "/path/to/cpplint.py"))