https://github.com/cxa/moonbit-mode
Emacs major mode for editing MoonBit.
https://github.com/cxa/moonbit-mode
Last synced: 3 months ago
JSON representation
Emacs major mode for editing MoonBit.
- Host: GitHub
- URL: https://github.com/cxa/moonbit-mode
- Owner: cxa
- Created: 2024-03-17T14:28:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T02:14:05.000Z (about 2 years ago)
- Last Synced: 2025-03-02T01:44:50.354Z (over 1 year ago)
- Language: Emacs Lisp
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# moonbit-mode
> [!WARNING]
> Still in early stage development, use with caution
## Prerequisites
- Emacs 29 with Tree-sitter support
- Build MoonBit grammars for Emacs:
``` shell
git clone git@github.com:moonbitlang/tree-sitter-moonbit.git
cd tree-sitter-moonbit/src
cc -fPIC -c -I. parser.c
cc -fPIC -c -I. scanner.c
cc -fPIC -shared *.o -o libtree-sitter-moonbit.so
mv libtree-sitter-moonbit.so ~/.emacs.d/tree-sitter/
```
## Install
You can either:
- Clone this repo, add the `moonbit-mode.el` file to your Emacs `load-path`: `(add-to-list 'load-path "/path/to/moonbit-mode")`
- With `use-package`:
``` elsip
(use-package moonbit-mode
:quelpa (moonbit-mode :fetcher github :repo "cxa/moonbit-mode"))
```