|
1 | | -# flymake-csslint.el |
| 1 | +# flymake-csslint |
2 | 2 |
|
3 | | -To use [CSSLint](https://github.com/stubbornella/csslint) with emacs, |
4 | | -you will need CSSLint installed and available on your path. You should |
5 | | -be able to do |
| 3 | +flymake-csslint.el is an [Emacs](http://www.gnu.org/software/emacs) |
| 4 | +integration of [CSSLint](https://github.com/stubbornella/csslint). The |
| 5 | +implementation is very much based on |
| 6 | +[flymake-jshint.el](http://marmalade-repo.org/packages/flymake-jshint) |
| 7 | +by [Wilfred Hughes](http://wilfred.me.uk). |
6 | 8 |
|
7 | | - $ csslint |
| 9 | +## Installation and usage |
8 | 10 |
|
9 | | -without problem. To do this, you can install node.js, npm and |
10 | | -csslint by doing the following: |
| 11 | +The easiest way to install flymake-csslint is probably to install it |
| 12 | +via the ELPA archive at |
| 13 | +[Marmalade](http://marmalade-repo.org/packages/flymake-csslint). |
11 | 14 |
|
12 | | - $ apt-get install nodejs # or your distro / OS equivalent |
13 | | - $ curl http://npmjs.org/install.sh | sh |
14 | | - $ npm install -g csslint |
| 15 | +ELPA (package.el) is part of Emacs 24. For Emacs 23 see |
| 16 | +[Marmalade](http://marmalade-repo.org) for installation instructions. |
15 | 17 |
|
16 | | -flymake-csslint.el is very much based on flymake-jshint.el by |
17 | | -[Wilfred Hughes](<me@wilfred.me.uk>). |
| 18 | +If you don't install via ELPA make sure that flymake-csslint.el is in |
| 19 | +your load-path and require the library |
18 | 20 |
|
19 | | -## Usage |
| 21 | + (add-to-list 'load-path "~/.emacs.d/path/to/flymake-csslint") |
| 22 | + (require 'flymake-csslint) |
20 | 23 |
|
21 | | -Add to your emacs config: |
| 24 | +## Requirements |
22 | 25 |
|
23 | | - (require 'flymake-csslint) |
24 | | - (add-hook 'css-mode-hook 'flymake-mode) |
| 26 | +To use [CSSLint](https://github.com/stubbornella/csslint) with emacs, |
| 27 | +you will need to have a command line version of CSSLint installed, see |
| 28 | +installation instructions at |
| 29 | +https://github.com/stubbornella/csslint/wiki/Command-line-interface. |
25 | 30 |
|
26 | | -making sure that flymake-csslint.el is on your load-path. If not, |
27 | | -also add to your config: |
| 31 | +If the `csslint` executable is not available on your PATH your need to |
| 32 | +configure the flymake-csslint-program variable and let it point to the |
| 33 | +executable. |
28 | 34 |
|
29 | | - (add-to-list 'load-path "~/.emacs.d/path/to/flymake-csslint.el") |
| 35 | + M-x customize-variable <RET> flymake-csslint-program <RET> |
30 | 36 |
|
31 | 37 | ## Debugging |
32 | 38 |
|
33 | 39 | If CSSLint isn't working for any reason, execute |
34 | 40 |
|
35 | | - M-x set-variable flymake-log-level <RET> 3 |
| 41 | + M-x set-variable <RET> flymake-log-level <RET> 3 <RET> |
36 | 42 |
|
37 | 43 | and you will see what is going wrong listed in the *Messages* |
38 | 44 | buffer. |
| 45 | + |
| 46 | +## Development of flymake-csslint |
| 47 | + |
| 48 | +flymake-csslint.el is developed at |
| 49 | +[GitHub](https://github.com/arnested/flymake-csslint). Feature |
| 50 | +requests, ideas, bug reports, and pull request are more that welcome! |
0 commit comments