Install for Emacs with npm
Supported operating systems:
GNU/Linux and macOS instructions
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)
- Flycheck
- LSP Mode
2. Install quick-lint-js
Install quick-lint-js globally (on your machine) for use anywhere, including the Emacs plugin:
npm install --global 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.
-
Extract
quick-lint-js-emacs.zip
's files into a directory somewhere safe (for example,~/.emacs/quick-lint-js-emacs/
). -
Add the
quick-lint-js-emacs
directory to the Emacsload-path
variable. For example, add the following line to your init file (e.g.~/.emacs
):(add-to-list 'load-path "~/.emacs/quick-lint-js-emacs")
- Restart Emacs.