GithubHelp home page GithubHelp logo

scss-mode's Introduction

SCSS Mode for Emacs

Major mode for editing SCSS files in Emacs.

Features

  • Compilation of current file on save. (Disable by changing scss-compile-at-save to nil)
  • Flymake support, enable with M-x flymake-mode
  • Indentation and highlighting (Derived from CSS-mode)
  • Syntax highlighting for variables and inline comments.

    http://i.imgur.com/Wdokb.png

    http://i.imgur.com/9ed6X.png

Installation

Command line utility sass is required, http://sass-lang.com/. Make sure sass location is in emacs PATH, example:

(setq exec-path (cons (expand-file-name "~/.gem/ruby/1.8/bin") exec-path))

Or customize scss-sass-command to point directly to your sass executable.

Add something like this to your emacs load file:

(add-to-list 'load-path (expand-file-name "~/.emacs.d/folder-where-you-put-scss-mode-el"))
(autoload 'scss-mode "scss-mode")
(add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))

Tips

If you want to automatically hide the compilation buffer for every successful compilation have a look at aj-compilation.el

All successful compilations in other modes are also hidden, except for rgrep “compilations” where a successful compilation is what you are interested in…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.