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
- Host: GitHub
- URL: https://github.com/kljohann/pikchr-mode
- Owner: kljohann
- License: gpl-3.0
- Created: 2020-11-16T20:04:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-25T18:24:10.000Z (over 3 years ago)
- Last Synced: 2024-01-21T21:59:51.591Z (6 months ago)
- Topics: emacs, emacs-mode, emacs-package, emacs-packages, major-mode, pikchr
- Language: Emacs Lisp
- Homepage:
- Size: 162 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - kljohann/pikchr-mode - Emacs major mode for the pikchr diagram markup language (Emacs Lisp)
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).