Skip to content

Commit

Permalink
No need for "format".
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Nov 7, 2024
1 parent 3f77a03 commit ec35797
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ bells and whistles. But it does have some commands:
exist.

You may also want to use the `futhark fmt` integration with commands
like `futhark-fmt-format-buffer`, or whenever you save with
`futhark-fmt-format-on-save-mode`.
like `futhark-fmt-buffer`, or whenever you save with
`futhark-fmt-on-save-mode`. You can enable that automatically on load
as well:

```elisp
(add-hook 'futhark-mode-hook futhark-fmt-on-save-mode)
```

## Eglot

Expand Down
6 changes: 3 additions & 3 deletions futhark-fmt.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
(defvar futhark-fmt-mode-map (make-sparse-keymap)
"Local keymap used for `futhark-fmt-format-on-save-mode`.")

;;;###autoload (autoload 'futhark-fmt-format-buffer "futhark-fmt" nil t)
;;;###autoload (autoload 'futhark-fmt-format-region "futhark-fmt" nil t)
;;;###autoload (autoload 'futhark-fmt-format-on-save-mode "futhark-fmt" nil t)
;;;###autoload (autoload 'futhark-fmt-buffer "futhark-fmt" nil t)
;;;###autoload (autoload 'futhark-fmt-region "futhark-fmt" nil t)
;;;###autoload (autoload 'futhark-fmt-on-save-mode "futhark-fmt" nil t)
(reformatter-define futhark-fmt
:program "futhark"
:args (cons "fmt" futhark-fmt-extra-args)
Expand Down

0 comments on commit ec35797

Please sign in to comment.