Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
The Juvix Emacs mode

## Installation

### Using straight.el

This installs juvix-mode, to your emacs config

```emacs-lisp
(use-package juvix-mode :straight (:host github :repo "anoma/juvix-mode")
:mode ("\\.\\(juvix\\)$" . juvix-mode))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  :mode ("\\.\\(juvix\\)$" . juvix-mode))

Just to confirm. This line is necessary even though we have the following in juvix-mode.el?

(add-to-list 'auto-mode-alist '("\\.juvix\\'" . juvix-mode))
(add-to-list 'auto-mode-alist '("\\.juvix.md\\'" . juvix-mode))

If so, we'd need to add the .juvix.md extension as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, for some reason it doesn't work for me without it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a bug in how it's registered in the elisp

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then could you add the juvix.md extension to trigger the mode as well?

```

### Manually

To install juvix-mode, clone this repository to a path of your choice:
``` shell
git clone https://github.com/anoma/juvix-mode /path/of/choice/juvix-mode
Expand Down