LoginSignup
2
2

More than 5 years have passed since last update.

scss-mode で .scss ファイルをセーブするたびにコンパイルが走るのを抑制する

Last updated at Posted at 2014-05-03

Emacs の scss モードを使っているとセーブする度にコンパイルが入って邪魔。
Rails だと Asset Pipeline が勝手にコンパイルしてくれるので要らない。
合わせてインデント幅も 4 -> 2 に変更。

init.el
(add-hook 'scss-mode-hook
  '(lambda ()
     (and
      (set (make-local-variable 'css-indent-offset) 2)      ; インデント2
      (set (make-local-variable 'scss-compile-at-save) nil) ; セーブ時にコンパイルしない
      )))

参考

2
2
2

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
2
2