-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
124 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
README | ||
flymake-csslint-*.tar | ||
flymake-csslint-pkg.el | ||
flymake-csslint.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.PHONY: all clean install | ||
|
||
ARCHIVE_NAME:=flymake-csslint | ||
VERSION:=$(shell emacs --batch --eval "(with-temp-buffer \ | ||
(require 'package)\ | ||
(insert-file \"$(ARCHIVE_NAME).el\")\ | ||
(princ (aref (package-buffer-info) 3)))") | ||
PACKAGE_NAME:=$(ARCHIVE_NAME)-$(VERSION) | ||
|
||
all: $(PACKAGE_NAME).tar | ||
|
||
$(ARCHIVE_NAME).info: README.md | ||
pandoc -t texinfo $^ | makeinfo -o $@ | ||
|
||
README: README.md | ||
pandoc --atx-headers -t plain -o $@ $^ | ||
|
||
# requires package-build.el from https://github.com/milkypostman/melpa | ||
# to be available in your emacs load-path | ||
$(ARCHIVE_NAME)-pkg.el: $(ARCHIVE_NAME).el | ||
emacs --batch --user `whoami` --eval "(progn \ | ||
(require 'package-build) \ | ||
(pb/write-pkg-file \ | ||
\"$(ARCHIVE_NAME)-pkg.el\" \ | ||
(with-temp-buffer \ | ||
(insert-file \"$(ARCHIVE_NAME).el\") \ | ||
(package-buffer-info))))" | ||
|
||
# create a tar ball in package.el format for uploading to http://marmalade-repo.org | ||
$(PACKAGE_NAME).tar: README $(ARCHIVE_NAME).el $(ARCHIVE_NAME)-pkg.el $(ARCHIVE_NAME).info dir | ||
tar -c -s "@^@$(PACKAGE_NAME)/@" -f $(PACKAGE_NAME).tar $^ | ||
|
||
install: $(PACKAGE_NAME).tar | ||
emacs --batch --user `whoami` --eval "(progn \ | ||
(package-initialize)\ | ||
(package-install-file \"`pwd`/$(PACKAGE_NAME).tar\"))" | ||
|
||
clean: | ||
$(RM) $(ARCHIVE_NAME)-*.tar $(ARCHIVE_NAME)-pkg.el README $(ARCHIVE_NAME).info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,50 @@ | ||
# flymake-csslint.el | ||
# flymake-csslint | ||
|
||
To use [CSSLint](https://github.com/stubbornella/csslint) with emacs, | ||
you will need CSSLint installed and available on your path. You should | ||
be able to do | ||
flymake-csslint.el is an [Emacs](http://www.gnu.org/software/emacs) | ||
integration of [CSSLint](https://github.com/stubbornella/csslint). The | ||
implementation is very much based on | ||
[flymake-jshint.el](http://marmalade-repo.org/packages/flymake-jshint) | ||
by [Wilfred Hughes](http://wilfred.me.uk). | ||
|
||
$ csslint | ||
## Installation and usage | ||
|
||
without problem. To do this, you can install node.js, npm and | ||
csslint by doing the following: | ||
The easiest way to install flymake-csslint is probably to install it | ||
via the ELPA archive at | ||
[Marmalade](http://marmalade-repo.org/packages/flymake-csslint). | ||
|
||
$ apt-get install nodejs # or your distro / OS equivalent | ||
$ curl http://npmjs.org/install.sh | sh | ||
$ npm install -g csslint | ||
ELPA (package.el) is part of Emacs 24. For Emacs 23 see | ||
[Marmalade](http://marmalade-repo.org) for installation instructions. | ||
|
||
flymake-csslint.el is very much based on flymake-jshint.el by | ||
[Wilfred Hughes](<me@wilfred.me.uk>). | ||
If you don't install via ELPA make sure that flymake-csslint.el is in | ||
your load-path and require the library | ||
|
||
## Usage | ||
(add-to-list 'load-path "~/.emacs.d/path/to/flymake-csslint") | ||
(require 'flymake-csslint) | ||
|
||
Add to your emacs config: | ||
## Requirements | ||
|
||
(require 'flymake-csslint) | ||
(add-hook 'css-mode-hook 'flymake-mode) | ||
To use [CSSLint](https://github.com/stubbornella/csslint) with emacs, | ||
you will need to have a command line version of CSSLint installed, see | ||
installation instructions at | ||
https://github.com/stubbornella/csslint/wiki/Command-line-interface. | ||
|
||
making sure that flymake-csslint.el is on your load-path. If not, | ||
also add to your config: | ||
If the `csslint` executable is not available on your PATH your need to | ||
configure the flymake-csslint-program variable and let it point to the | ||
executable. | ||
|
||
(add-to-list 'load-path "~/.emacs.d/path/to/flymake-csslint.el") | ||
M-x customize-variable <RET> flymake-csslint-program <RET> | ||
|
||
## Debugging | ||
|
||
If CSSLint isn't working for any reason, execute | ||
|
||
M-x set-variable flymake-log-level <RET> 3 | ||
M-x set-variable <RET> flymake-log-level <RET> 3 <RET> | ||
|
||
and you will see what is going wrong listed in the *Messages* | ||
buffer. | ||
|
||
## Development of flymake-csslint | ||
|
||
flymake-csslint.el is developed at | ||
[GitHub](https://github.com/arnested/flymake-csslint). Feature | ||
requests, ideas, bug reports, and pull request are more that welcome! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
This is the file .../info/dir, which contains the | ||
topmost node of the Info hierarchy, called (dir)Top. | ||
The first time you invoke Info you start off looking at this node. | ||
File: dir, Node: Top This is the top of the INFO tree | ||
|
||
This (the Directory node) gives a menu of major topics. | ||
Typing "q" exits, "?" lists all Info commands, "d" returns here, | ||
"h" gives a primer for first-timers, | ||
"mEmacs<Return>" visits the Emacs manual, etc. | ||
|
||
In Emacs, you can click mouse button 2 on a menu item or cross reference | ||
to select it. | ||
|
||
* Menu: | ||
|
||
Programming | ||
* Flymake CSSLint: (flymake-csslint). Making flymake work with CSSLint. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters