Problem description:
I am using Emacs scss-mode on Macbook Air, the problem is when I save *.scss file , it said: can not find the SASS command.
I can run SASS command in the terminal (I installed by sudo gem install sass). But where is the SASS executable command path, so I can update my .emacs file accordingly?
I searched ~/.gem/ , /usr/lib/gem/ directory, but failed to find sass. Now I just disabled scss compilation function , but it's really inconvenient.
So I find sass using "find".
Change to .emacs is as below:
- Add sass PATH to emacs PATH:
(setenv "PATH" (concat "/Library/Ruby/Gems/2.0.0/gems/sass-3.4.6/bin" ":" (getenv "PATH") ) )
- And because I use "compass" also, I add below compile options to make sure everything is fine when C-x C-s is clicked.
(setq scss-sass-options '("--compass"))