antonj / scss-mode

Emacs mode for SCSS files (http://sass-lang.com)
200 stars 39 forks source link

Add support for custom arguments to sass #6

Closed haxney closed 13 years ago

haxney commented 13 years ago

I use SCSS with the compass framework, and so need to pass the --compass option to the sass executable. I added a defcustom for scss-sass-options to my local file with a list of arguments like so:

(defcustom scss-sass-options '("--compass" "-v" "--cache-location '/tmp/.sass-cache'")
  "Options for SCSS"
  :group 'scss)

I had to change scss-compile to include (mapconcat 'identity scss-sass-options " ") and flymake-scss-init to include (append scss-sass-options (list "--scss" "--check" local-file)). This seems to work properly with the options I gave it.

antonj commented 13 years ago

Thanks, I'll try to add this soon. Would you like to create a pull request? Default scss-sass-options should probably by empty '()

antonj commented 13 years ago

Thanks, added in 0a8247b5259f5d9e49f1 let me know if this does not work.