diff options
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | flymake-clippy.el | 4 |
2 files changed, 6 insertions, 6 deletions
@@ -1,16 +1,17 @@ # flymake-clippy +[](https://melpa.org/#/flymake-coffee) + A Flymake backend for [Clippy](https://doc.rust-lang.org/stable/clippy/index.html), the Rust linter. ## Instructions You probably want to install [rust-mode](https://github.com/rust-lang/rust-mode) first. -With Emacs 30: +Install from MELPA: ``` elisp (use-package flymake-clippy - :vc (:url "https://git.sr.ht/~mgmarlow/flymake-clippy" :branch main) :hook (rust-mode . flymake-clippy-setup-backend)) ``` @@ -25,8 +26,6 @@ git clone https://git.sr.ht/~mgmarlow/flymake-clippy /path/to/flymake-clippy (require 'flymake-clippy) ``` -Emacs versions prior to 30 can also install [use-package](https://github.com/jwiegley/use-package) and [vc-use-package](https://github.com/slotThe/vc-use-package) for an easier setup. - ### Eglot users Eglot users require [a little extra setup](https://github.com/joaotavora/eglot/issues/268) to enable running multiple Flymake backends simultaneously. Add the following to your Emacs config: @@ -62,7 +61,6 @@ Emacs 30, eglot 1.6+: :ensure t) (use-package flymake-clippy - :vc (:url "https://git.sr.ht/~mgmarlow/flymake-clippy" :branch main) :hook (rust-mode . flymake-clippy-setup-backend)) (defun manually-activate-flymake () diff --git a/flymake-clippy.el b/flymake-clippy.el index 2ecf61e..7925362 100644 --- a/flymake-clippy.el +++ b/flymake-clippy.el @@ -24,7 +24,9 @@ ;;; Commentary: ;; Flymake backend for Clippy, the Rust linter. -;; https://doc.rust-lang.org/stable/clippy/index.html +;; +;; (use-package flymake-clippy +;; :hook (rust-mode . flymake-clippy-setup-backend)) ;;; Code: |
