Skip to content

Commit

Permalink
Add Emacs editor integration instructions (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpthiele authored Nov 12, 2024
1 parent 6bd8eae commit 582cc96
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,25 @@ Julia language extension also comes with a formatter.
> Note that Custom Local Formatters is a third party extension. It works as advertised but
> use it at your own risk.
#### Emacs
Runic can be used as a formatter in [Emacs](https://www.gnu.org/software/emacs/) using [apheleia](https://github.com/radian-software/apheleia).
Refer to the apheleia repository for installation and setup instruction.
Runic is not (yet) available directly in apheleia so the
following configuration needs to be added to your `.emacs`.
This assumes that Runic is installed in the `@runic` shared project as suggested in the [Installation](#installation) section above.
```
(push `(runic . ("julia" "--project=@runic" "-e" "using Runic; exit(Runic.main(ARGS))" "--")) apheleia-formatters)
(push '(julia-mode . runic) apheleia-mode-alist)
```
> [!IMPORTANT]
> Note that apheleia is a third party extension. It works as advertised but
> use it at your own risk.
## Checking formatting
Runic has a check-mode that verifies whether files are correctly formatted or not. This mode
Expand Down

0 comments on commit 582cc96

Please sign in to comment.