メモです。 http://sourceforge.jp/projects/sfnet_cppcheck/ よりcppcheckをダウンロード、展開後、パスを通します。
pckage.elよりflymake-easy.el、flymake-cppcheck.elをインストール。
helmでエラーを見るためhelm-flymakeもインストール。
;; ------------------------------------------------------------------------ ;; @ cppchek.el ;; https://github.com/senda-akiha/flymake-cppcheck (require 'flymake-cppcheck) (add-hook 'c-mode-hook 'flymake-cppcheck-load) (custom-set-variables '(flymake-cppcheck-enable "all")) (require 'helm-flymake)
結果。
わーい。なんかwarningがnilになってるけどひとまずいいや。