Skip to content

A GNU Emacs major mode for the TV Tropes markup format

License

Notifications You must be signed in to change notification settings

TriAttack238/trope-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trope-Mode

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.

./assets/Trope-Mode-demo_2.gif

Installation

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.

Functions

Besides font-locking, this package also provides functions and keybindings to speed up writing.

FunctionKeybindingDefinition
trope-mode-italicize-regionC-c ; iItalicize selected region
trope-mode-bold-regionC-c ; bBold selected region
trope-mode-monospace-regionC-c ; mMonospace selected region
trope-mode-create-folderC-c ’ fCreate a folder
trope-mode-create-noteC-c ’ nCreate a note
trope-mode-create-quoteblockC-c ’ qCreate a quote block
trope-mode-create-labelnoteC-c ’ lCreate a labelnote

About

A GNU Emacs major mode for the TV Tropes markup format

Resources

License

Stars

Watchers

Forks

Packages

No packages published