branch: externals/flymake-clippy
commit 5a3873f40f4c4ddfa1fbf2c520a071b5aafb169f
Author: Michael Kirkland <michael.kirkland...@protonmail.com>
Commit: GitHub <nore...@github.com>

    Update README.md
    
    Include GNU ELPA as installation method
---
 README.md | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 178ad81f48..936d77b47d 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))

Reply via email to