From f488c7df2f56635dea0576ea2872c4c94b584a67 Mon Sep 17 00:00:00 2001 From: mgmarlow Date: Tue, 8 Aug 2023 16:28:05 -0700 Subject: Update docs with MELPA release --- README.md | 8 +++----- flymake-clippy.el | 4 +++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b937488..3ff7a7f 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,17 @@ # flymake-clippy +[![MELPA](https://melpa.org/packages/flymake-coffee-badge.svg)](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: -- cgit v1.2.3