Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.48 KB

File metadata and controls

20 lines (13 loc) · 1.48 KB

Org Babel support for YAML

The Emacs Lisp module ob-yaml.el adds support for YAML source code blocks in Org Babel. It was created via trivial modifications of the template file.

The primary aim was to allow for writing and maintaining bigger YAML files (or sets of such files) in a literate programming style by using the powerful Babel subsystem of Org mode. One particular example are Home Assistant configuration files.

Only a subset of Org Babel functionality is required for such purposes, namely editing blocks in yaml-mode, tangling (including noweb references) and possibly exporting. Specifically, YAML blocks needn’t be evaluated, and so evaluation-related functions are left unimplemented.

Installation

The module can be easily installed in Emacs via use-package:

(use-package ob-yaml
  :vc (:url "https://github.com/llhotka/ob-yaml.git"
       :rev :newest))

Alternatively, the ob-yaml.el file can be downloaded and than loaded locally using, for instance, the Emacs load function.