Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (26 sloc) 1.403 kb
fc69b91 @antonj Added README
authored
1 * SCSS Mode for Emacs
2 Major mode for editing [[http://sass-lang.com/][SCSS]] files in Emacs.
3
4 ** Features
5 - Compilation of current file on save. (Disable by changing
6 =scss-compile-at-save= to =nil=)
7 - Flymake support, enable with =M-x flymake-mode=
8 - Indentation and highlighting (Derived from CSS-mode)
9 - Syntax highlighting for variables and inline comments.
10
11 [[http://i.imgur.com/Wdokb.png]]
12
13 [[http://i.imgur.com/9ed6X.png]]
baa49a9 @antonj README tip hide compilation buffer
authored
14
15 ** Installation
cf8def2 @antonj org-mode doc fix
authored
16 Command line utility sass is required, [[http://sass-lang.com/]]. Make
fc69b91 @antonj Added README
authored
17 sure sass location is in emacs PATH, example:
18
19 : (setq exec-path (cons (expand-file-name "~/.gem/ruby/1.8/bin") exec-path))
20
21 Or customize =scss-sass-command= to point directly to your sass
22 executable.
23
24 Add something like this to your emacs load file:
25
26 : (add-to-list 'load-path (expand-file-name "~/.emacs.d/folder-where-you-put-scss-mode-el"))
27 : (autoload 'scss-mode "scss-mode")
28 : (add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))
baa49a9 @antonj README tip hide compilation buffer
authored
29
30 ** Tips
31 If you want to automatically hide the compilation buffer for every
cf8def2 @antonj org-mode doc fix
authored
32 successful compilation have a look at [[https://github.com/antonj/.emacs.d/blob/master/aj-compilation.el][aj-compilation.el]]
baa49a9 @antonj README tip hide compilation buffer
authored
33
34 All successful compilations in other modes are also hidden, except
35 for rgrep "compilations" where a successful compilation is what you
36 are interested in...
Something went wrong with that request. Please try again.