LoginSignup
4
4

More than 5 years have passed since last update.

[Emacs] flycheck で coffeelintを使う

Posted at

[Emacs] flycheckcoffeelintを使う

coffeelintのインストール

システムのnodeを使う場合
sudo npm install -g coffeelint
nvmのnodeを使う場合
npm install -g coffeelint

Emacsの設定

flycheckのインストール

Caskを使う場合、以下をファイルCaskに追加する。

Cask
(depends-on "flycheck")

元から入っているパッケージシステムを使う場合、
M-x package-installでパッケージを聞かれるので、flycheckを指定してください。

coffee-modeでのflycheckの設定

.emacs.d/init.el
;; flycheck
(add-hook 'coffee-mode-hook
          `(lambda ()
             (setq flycheck-checker 'coffee)
             (flycheck-mode 1)))

coffeeチェッカーは、coffeeコマンドで警告以外が出てなければcoffeelintを実行するチェッカーです。

参考文献

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4