M README.md => README.md +3 -10
@@ 13,21 13,14 @@ Clone the repo:
git clone https://git.sr.ht/~mgmarlow/flymake-fennel /path/to/flymake-fennel
```
-Require `flymake-fennel`:
+Add `flymake-fennel` to your Emacs config:
```elisp
(add-to-list 'load-path "/path/to/flymake-fennel")
(require 'flymake-fennel)
-```
-
-Optionally, add `flymake-mode` to your `fennel-mode` hooks:
-```elisp
-(use-package fennel-mode
- :ensure t
- :hook (fennel-mode . flymake-mode))
+(add-hook 'fennel-mode-hook #'flymake-mode)
+(add-hook 'fennel-mode-hook #'fnl-setup-flymake-backend)
```
-Note: `flymake-fennel` automatically registers its own Flymake
-backend.
M flymake-fennel.el => flymake-fennel.el +0 -2
@@ 80,8 80,6 @@ Calls into REPORT-FN with diagnostics from the fennel compiler."
"Add `fnl-flymake-backend' to `flymake-diagnostic-functions'."
(add-hook 'flymake-diagnostic-functions 'fnl-flymake-backend nil t))
-(add-hook 'fennel-mode-hook 'fnl-setup-flymake-backend)
-
(provide 'flymake-fennel)
;;; flymake-fennel.el ends here