[emacs] add config for ditaa

This commit is contained in:
Julin S 2022-04-29 10:57:05 +05:30
parent f98d104526
commit 3d43c31715

View File

@ -132,9 +132,16 @@
'((dot . t)
(python . t)))
;; Point to jar file of ditaa
(setq org-ditaa-jar-path "/usr/share/ditaa/ditaa.jar")
;; Don't ask confirmation for code block eval of some languages
(defun my-org-confirm-babel-evaluate (lang body)
(not (string= lang "dot"))) ; don't ask confirmation for dot
; don't ask confirmation for these file types
(not (or
(string= lang "python")
(string= lang "dot")
(string= lang "ditaa"))))
(setq org-confirm-babel-evaluate #'my-org-confirm-babel-evaluate)
;; Don't split line when doing M-RET at an item to make new item