Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/purcell/flymake-json
Emacs flymake handler for json using jsonlint
https://github.com/purcell/flymake-json
Last synced: 3 days ago
JSON representation
Emacs flymake handler for json using jsonlint
- Host: GitHub
- URL: https://github.com/purcell/flymake-json
- Owner: purcell
- Created: 2013-01-17T16:56:02.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T22:56:14.000Z (almost 4 years ago)
- Last Synced: 2024-12-02T18:11:14.283Z (2 months ago)
- Language: Emacs Lisp
- Size: 4.88 KB
- Stars: 12
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
flymake-json.el
===============An Emacs flymake handler for syntax-checking JSON using `jsonlint`.
Installation
=============First install `jsonlint`, e.g. via `npm`:
npm install jsonlint -g
If you choose not to use one of the convenient packages in
[Melpa][melpa] and [Marmalade][marmalade], you'll need to add the
directory containing `flymake-json.el` to your `load-path`, and then
`(require 'flymake-json)`. You'll also need to install
[flymake-easy](https://github.com/purcell/flymake-easy).Usage
=====Add the following to your emacs init file:
(require 'flymake-json) ;; not required if installed from a package
Then, if you're using `json-mode':
(add-hook 'json-mode-hook 'flymake-json-load)
or, if you use `js-mode' for json:
(add-hook 'js-mode-hook 'flymake-json-maybe-load)
otherwise:
(add-hook 'find-file-hook 'flymake-json-maybe-load)
[marmalade]: http://marmalade-repo.org
[melpa]: http://melpa.milkbox.net
[![](http://api.coderwall.com/purcell/endorsecount.png)](http://coderwall.com/purcell)
[![](http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.png)](http://uk.linkedin.com/in/stevepurcell)
[Steve Purcell's blog](http://www.sanityinc.com/) // [@sanityinc on Twitter](https://twitter.com/sanityinc)