Skip to content

kljohann/pikchr-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pikchr-mode

A major mode for the pikchr diagram markup language.

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:
    #+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).

Releases

No releases published