https://github.com/thornjad/rivet-mode
Apache Rivet mode for Emacs
https://github.com/thornjad/rivet-mode
emacs rivet tcl
Last synced: about 1 year ago
JSON representation
Apache Rivet mode for Emacs
- Host: GitHub
- URL: https://github.com/thornjad/rivet-mode
- Owner: thornjad
- License: isc
- Created: 2019-01-29T13:40:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T18:55:19.000Z (over 4 years ago)
- Last Synced: 2025-01-24T12:30:23.320Z (over 1 year ago)
- Topics: emacs, rivet, tcl
- Language: Emacs Lisp
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.org
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# rivet-mode - A minor mode for editing Apache Rivet files
_Author:_ Jade Michael Thornton
_Version:_ 4.1.0
[](https://melpa.org/#/rivet-mode) [](./LICENSE) [](https://gitlab.com/thornjad/rivet-mode) [](https://gitlab.com/thornjad/rivet-mode/-/tags)
Rivet mode is a minor mode for editing Apache Rivet files. It automatically
detects whether TCL or HTML is currently being edited and uses the major
modes tcl-mode and web-mode, respectively.
By default, `rivet-mode` requires `tcl` (built-in) and `web-mode`. To use
another mode, customize `rivet-mode-host-mode` and `rivet-mode-inner-mode` to
suit.
## Installation
Install the `rivet-mode` package from MELPA.
## Usage
The mode will be activated upon opening a Rivet file. There are a handful of
convenient function available inside this file. It is recommended to bind
these to keys of your choosing.
Provided functions:
- `rivet-insert-tcl`: Insert TCL tags ("" and "?>") at point, and move point
inside of the tags. This will also switch to TCL mode.
- `rivet-insert-begin-tcl`: Insert an opening TCL tag at point and move inside
it.
- `rivet-insert-end-tcl`: Insert a closing TCL tag at point and move outside
it. This will also switch to web mode.
- `rivet-insert-echo`: Insert TCL echo tags ("=" and "?>") at point and move
inside them. This will also switch to TCL mode.
- `rivet-insert-begin-echo`: Insert an opening TCL echo tag at point and move
inside it.
## Customization
The variable `rivet-mode-host-mode` determines the "host" major mode, which
is `web-mode` by default.
The variable `rivet-mode-inner-mode` determines the "inner" major mode, which
is the built-in `tcl-mode` by default.
The variable `rivet-mode-delimiters` defines the left and right delimiters
which demark the bounds of the "inner" major mode (TCL). These are "" and
"?>" by default. Note that the "=" delimiter, which marks the start of an
expression, still begins with "" and so will be caught.
---
Converted from `rivet-mode.el` by [_el2md_](https://gitlab.com/thornjad/el2md).