purcell / skewer-less

Live LESS stylesheet updates from Emacs via skewer-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Melpa Status Melpa Stable Status Support me

skewer-less.el

Emacs minor mode allowing LESS stylesheet manipulation via skewer-mode.

Note that this is intended for use in place of skewer-css-mode, which does not work with LESS.

The LESS styles in the current buffer will be passed through lessc and then to skewer-css. For this to work properly, the lessc command should be present on exec-path.

Installation

If you choose not to use one of the convenient packages in MELPA, you'll need to add the directory containing skewer-less.el to your load-path, and then (require 'skewer-less).

Usage

Enable skewer-less in an individual buffer like this:

(skewer-less-mode)

Alternatively, add 'skewer-less-mode to your less-css-mode-hook:

(add-hook 'less-css-mode-hook 'skewer-less-mode)

Save the buffer to trigger an update, or hit C-c C-k just like in skewer-css-mode.


Steve Purcell's blog // @sanityinc on Twitter

About

Live LESS stylesheet updates from Emacs via skewer-mode


Languages

Language:Emacs Lisp 100.0%