~mgmarlow/flymake-fennel

ce135d396cf4b7525f7532667ac220a9951bd207 — Graham Marlow 11 months ago cb24e9b
Don't automatically register hooks
2 files changed, 3 insertions(+), 12 deletions(-)

M README.md
M flymake-fennel.el
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