没有被emacs拾取的coffeelint.json语法检查

时间:2014-10-16 05:33:35

标签: emacs coffeescript

我在emacs中使用coffeemode,我的init.el的相关部分看起来像这样;

(custom-set-variables
 '(coffee-tab-width 2)
 '(flymake-coffee-coffeelint-configuration-file (expand-file-name "~/.emacs.d/coffeelint.json"))(require 'coffee-mode)

(add-to-list 'auto-mode-alist '("\\.coffee$" . coffee-mode))
(add-hook 'coffee-mode-hook 'flymake-coffee-load)
(add-hook 'coffee-mode-hook 'company-mode)
(add-hook 'coffee-mode-hook 'flymake-mode)
(add-hook 'coffee-mode-hook
          'disable-electric-indent-mode))

我的coffeelint文件没有被linter使用,因为max_line_length之类的警告没有获取覆盖值。

1 个答案:

答案 0 :(得分:0)

我最终偶然发现了对我有用的内容:

(setq coffee-tab-width 2)
(custom-set-variables
 '(coffee-tab-width 2)
 '(flycheck-coffeelintrc "~/.emacs.d/coffeelint.json"))

(add-hook 'coffee-mode-hook 'flymake-mode)