我在 emacs 中安装了以下软件包 24 flymake-google-cpplint 是已安装的软件包。
Status: Installed in `/home/myname/.emacs.d/elpa/flymake-google-cpplint-20140205.525/'.
Version: 20140205.525
在我的emacs中,我有以下内容,
; start flymake-google-cpplint-load
; let's define a function for flymake initialization
(defun my:flymake-google-init ()
(require 'flymake-google-cpplint)
(custom-set-variables
'(flymake-google-cpplint-command "/usr/local/bin/cpplint")
'(flymake-google-cpplint-verbose "3")
'(flymake-google-cpplint-linelength "120")
'(flymake-googlelint-filter "-whitespace/line_length"))
(flymake-google-cpplint-load)
)
(add-hook 'c-mode-hook 'my:flymake-google-init)
(add-hook 'c++-mode-hook 'my:flymake-google-init)
google-cpplint 运行良好,但不是过滤掉空格/line_length,cpplint 仍然在长行上显示消息,并且在超过 80 个字符的行上它也会发出警告;尽管我将其设置为 120 个字符时发出警告。
我已经重启了很多次emacs。并尝试M-X load-file RET
加载~/.emacs
我在这里错过了一步吗。我是否需要更改 cpplint.py 或 flymake-google-cpplint.el 中的某些内容才能使更改生效?谢谢