https://github.com/berquist/just-ts-mode.el
Emacs mode for justfiles using TreeSitter
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: acs.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.3%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Emacs mode for justfiles using TreeSitter
Basic Info
- Host: GitHub
- Owner: berquist
- License: gpl-3.0
- Default Branch: main
- Size: 50.8 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of leon-barrett/just-ts-mode.el
Created over 1 year ago
· Last pushed 11 months ago
https://github.com/berquist/just-ts-mode.el/blob/main/
# just-ts-mode.el - Emacs mode for justfiles using Tree-Sitter This Emacs mode does basic highlighting and indentation for justfiles, as used by [just](https://github.com/casey/just), using a Tree-Sitter grammar from [tree-sitter-just](https://github.com/IndianBoy42/tree-sitter-just). # Features This mode provides the following features for editing Justfiles: - [x] Syntax highlighting - [x] Basic indentation - [x] Formatting via `just-ts-format-buffer` - [x] Commenting - [ ] imenu # Installation `just-ts-mode` requires Emacs 29.1 or newer for Tree-Sitter support. If you haven't installed Tree-Sitter yet, please read [How to Get Started with Tree-Sitter - Mastering Emacs](https://www.masteringemacs.org/article/how-to-get-started-tree-sitter). `just-ts-mode` can be installed through [MELPA](https://melpa.org/#/just-ts-mode). ## Grammar installation This uses the justfile Tree-Sitter grammar from [tree-sitter-just](https://github.com/IndianBoy42/tree-sitter-just). The following Elisp code can be used to install the Justfile language parser. This requires some tools -- notably a compiler toolchain -- to be available on your machine. ``` emacs-lisp (require 'just-ts-mode) (just-ts-mode-install-grammar) ``` # Usage Edit a file named `Justfile`. It will have highlighting and indentation. # Comparison to `just-mode` There is an existing major mode for Justfiles that does not require tree-sitter, called [just-mode](https://stable.melpa.org/#/just-mode). It has worse syntax highlighting, with issues like [poor highlighting of comments](https://github.com/leon-barrett/just-mode.el/issues/11). # License `just-ts-mode` is licensed under the GPL3 license. Please see file `LICENSE` for its text.
Owner
- Name: Eric Berquist
- Login: berquist
- Kind: user
- Location: Boston, MA
- Company: Sandia National Laboratories
- Repositories: 403
- Profile: https://github.com/berquist
full-stack quantum chemist
GitHub Events
Total
- Push event: 1
- Create event: 1
Last Year
- Push event: 1
- Create event: 1