Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 947 Bytes

README.md

File metadata and controls

36 lines (21 loc) · 947 Bytes

CTXSnippets

A collection of almost 200 YASnippet templates for writing ConTeXt code in Emacs.

Installation

To install the snippets, clone this repo as

$ git clone https://github.com/oyvindeid/ctxsnippets

and copy the context-mode directory to yas-snippet-dirs.

Then run

M-x yas-recompile-all RET
M-x yas-reload-all RET

inside Emacs.

Config variables

Three Emacs config variables can be set like

(setq user-default-figures-dir "~/Pictures")
(setq user-default-bibtex-file "~/Documents/references.bib")
(setq user-default-csv-files-dir "~/csvfiles")  ;; PGF plot data source directory

in order to take full advantage of the installed templates.

License

The software is available as open source under the terms of the MIT License.