summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))