A major mode for writing the unnamed markup language used for the website TV Tropes, which should be put in “.trp” files. This package aims to be fast, use as little dependencies as possible, and to make it easier to write pages for the website, not to use as a standalone markup format.
Currently, this package is not in any centralized repository, although
that is a goal for the project. To use this package, clone the project
using git to a directory of your choice. Then, in your init.el
file
add this code:
(add-to-list 'load-path "path/to/trope-mode")
(require 'trope-mode)
(add-to-list 'auto-mode-alist '("\\.\\(?:trp\\|trope\\)". trope-mode))
The path should be to the project folder, not the file trope-mode.el
.
Besides font-locking, this package also provides functions and keybindings to speed up writing.
Function | Keybinding | Definition |
---|---|---|
trope-mode-italicize-region | C-c ; i | Italicize selected region |
trope-mode-bold-region | C-c ; b | Bold selected region |
trope-mode-monospace-region | C-c ; m | Monospace selected region |
trope-mode-create-folder | C-c ’ f | Create a folder |
trope-mode-create-note | C-c ’ n | Create a note |
trope-mode-create-quoteblock | C-c ’ q | Create a quote block |
trope-mode-create-labelnote | C-c ’ l | Create a labelnote |