summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kirkland <michael.kirkland.mk@protonmail.com>2025-03-23 15:10:48 +0100
committerGitHub <noreply@github.com>2025-03-23 15:10:48 +0100
commit5a3873f40f4c4ddfa1fbf2c520a071b5aafb169f (patch)
treed73e18d05322215433beb77090397509619ba658
parent38aeda6a8f4090b00f3c7fdb5188f80e04c556de (diff)
Update README.mdexternals/flymake-clippy
Include GNU ELPA as installation method
-rw-r--r--README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/README.md b/README.md
index 178ad81..936d77b 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,21 @@
## Installation
+### GNU ELPA
+
+1. Package can be installed directly from ELPA:
+
+ `M-x package-install RET flymake-clippy RET`
+
+2. Add the following to your Emacs configuration:
+
+ ```elisp
+ (use-package flymake-clippy
+ :hook ((rust-mode . flymake-clippy-setup))
+ :custom (flymake-clippy-cargo-path "cargo") ; Optional: Specify the path to the `cargo' executable.
+ :config (add-hook 'rust-mode-hook #'flymake-mode))
+ ```
+
### Manual Installation
1. Clone or download the repository to a local directory:
@@ -28,7 +43,7 @@
```elisp
(use-package flymake-clippy
- :load-path "~/path/to/flymake-clippy"
+ :load-path "~/path/to/flymake-clippy" ; Point to local repository
:hook ((rust-mode . flymake-clippy-setup))
:custom (flymake-clippy-cargo-path "cargo") ; Optional: Specify the path to the `cargo' executable.
:config (add-hook 'rust-mode-hook #'flymake-mode))