[emacs] add config for ditaa
This commit is contained in:
parent
f98d104526
commit
3d43c31715
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue