Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/kljohann/pikchr-mode

Emacs major mode for the pikchr diagram markup language
https://github.com/kljohann/pikchr-mode

emacs emacs-mode emacs-package emacs-packages major-mode pikchr

Last synced: 3 months ago
JSON representation

Emacs major mode for the pikchr diagram markup language

Lists

README

        

# pikchr-mode

A major mode for the [pikchr](https://pikchr.org/) diagram markup language.

![](preview.png)

## Features

- Syntax highlighting
- Interactive preview: `C-c C-c` will preview the current region or the current
buffer; `C-u C-c C-c` will preview the current buffer up to and including the
current line.
- Evaluating Org code blocks:
```org
#+begin_src pikchr :file example.svg
A: box "head" fit
B: box "tail" fit
C: box "something" with .sw at A.nw fit wid dist(A.w, B.e)
#+end_src
```

## Known Issues

Pikchr uses heuristics to place text. The default font family and size chosen
by Emacs to render the interactive preview might be different from that used by
a browser and the alignment might be off (see screenshot above).