[emacs] Download and use a recent version of ditaa

This commit is contained in:
Correl Roush 2021-12-18 02:09:09 -05:00
parent 61bb98686b
commit a7c0b8edb1

View file

@ -1116,6 +1116,25 @@ Show linked org document sections inline.
("C-c l v t" . org-transclusion-mode)) ("C-c l v t" . org-transclusion-mode))
:commands (org-transclusion-mode)) :commands (org-transclusion-mode))
#+end_src #+end_src
*** Ditaa
Download and use a recent version of [[https://github.com/stathissideris/ditaa][ditaa]] for rendering ASCII diagrams.
#+begin_src emacs-lisp
(after! ob-ditaa
(let ((jar-url "https://github.com/stathissideris/ditaa/releases/download/v0.11.0/ditaa-0.11.0-standalone.jar")
(jar-path (concat doom-etc-dir "ditaa.jar")))
(unless (f-exists? jar-path)
(url-copy-file jar-url jar-path))
(setq org-ditaa-jar-path jar-path
org-ditaa-eps-jar-path jar-path)))
#+end_src
Render using a transparent background.
#+begin_src emacs-lisp
(after! ob-ditaa
(setq org-ditaa-jar-option "-jar -T"))
#+end_src
** ReStructuredText ** ReStructuredText
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package! polymode (use-package! polymode