From 9017928dd4e1498f121c56d13563f35f22538fe2 Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Wed, 3 Jul 2024 12:40:34 -0600 Subject: [PATCH] document or i will forget --- emacs/init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emacs/init.el b/emacs/init.el index 85d73ae..f2b1f93 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -224,6 +224,9 @@ (lambda () (local-set-key (kbd "C-c e") 'insert-latex-equation))) + +;; Use with: '#+begin_src pic :results file' +;; Optional: ':exports none' to avoid showing the source (defun org-babel-execute:pic (body params) (let* ((tmpfile (org-babel-temp-file "pic-" ".png")) (quoted-text (replace-regexp-in-string "'" "'\\\\''" body))