Install for Emacs with npm
Supported operating systems:
quick-lint-js has an npm package, making it easy to install the LSP server for use by the Emacs plugin.
1. Install prerequisites
In order to install quick-lint-js' npm package, you must first install the npm client.
Install one of the following Emacs plugins:
- Eglot (recommended) (included in Emacs version 29 or newer)
- Flymake (included in Emacs version 26 or newer)
- LSP Mode
2. Install quick-lint-js
Install quick-lint-js globally (on your machine) for use anywhere, including the Emacs plugin:
sudo npm install --global --unsafe-perm quick-lint-js
Note: The Emacs plugin does not use quick-lint-js if it is installed locally within your project. The Emacs plugin only uses quick-lint-js if it is globally installed.
3. Install Emacs plugin
- Download the quick-lint-js Emacs plugin.
quick-lint-js-emacs.zip's files into a directory somewhere safe (for example,
quick-lint-js-emacsdirectory to the Emacs
load-pathvariable. For example, add the following line to your init file (e.g.
(add-to-list 'load-path "~/.emacs/quick-lint-js-emacs")
- Restart Emacs.
Read the Emacs plugin docs online.