diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-07-16 18:58:20 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-07-16 18:58:20 -0400 |
commit | ff2304d0d8b1eae53f929142751514c0f14d38d8 (patch) | |
tree | 7c528df7a7ad33c624dae8c703464cc3c382ca3f | |
parent | Set different colors for org TODO priorities A B C and D (diff) | |
download | mmosmacs-ff2304d0d8b1eae53f929142751514c0f14d38d8.tar.gz mmosmacs-ff2304d0d8b1eae53f929142751514c0f14d38d8.tar.bz2 mmosmacs-ff2304d0d8b1eae53f929142751514c0f14d38d8.zip |
Add support for drawing diagrams in org-mode
-rw-r--r-- | init.el | 37 |
1 files changed, 33 insertions, 4 deletions
@@ -1143,6 +1143,26 @@ | |||
1143 | :hook (org-mode . org-fragtog-mode)) | 1143 | :hook (org-mode . org-fragtog-mode)) |
1144 | 1144 | ||
1145 | 1145 | ||
1146 | ;; --------------------------------- | ||
1147 | ;; Diagrams | ||
1148 | ;; -------- | ||
1149 | ;; Ditaa, GraphViz, and PlantUML | ||
1150 | ;; --------------------------------- | ||
1151 | |||
1152 | ;; PlantUML | ||
1153 | (use-package plantuml-mode | ||
1154 | :straight t | ||
1155 | :config | ||
1156 | (setq plantuml-executable-path "/usr/bin/plantuml" | ||
1157 | org-plantuml-executable-path "/usr/bin/plantuml" | ||
1158 | plantuml-default-exec-mode 'executable | ||
1159 | org-plantuml-exec-mode 'plantuml)) | ||
1160 | |||
1161 | ;; Ditaa | ||
1162 | (setq org-ditaa-jar-path "/usr/share/ditaa/lib/ditaa.jar" | ||
1163 | org-ditaa-jar-option "-oS --svg") | ||
1164 | |||
1165 | |||
1146 | 1166 | ||
1147 | 1167 | ||
1148 | ;; --------------------------------------------------------------------- | 1168 | ;; --------------------------------------------------------------------- |
@@ -1276,16 +1296,25 @@ | |||
1276 | 1296 | ||
1277 | (org-babel-do-load-languages | 1297 | (org-babel-do-load-languages |
1278 | 'org-babel-load-languages | 1298 | 'org-babel-load-languages |
1279 | '((emacs-lisp . t) | 1299 | '(;; Programming languages |
1280 | (lisp . t) | ||
1281 | (C . t) | 1300 | (C . t) |
1282 | (makefile . t) | 1301 | (emacs-lisp . t) |
1283 | (latex . t) | 1302 | (latex . t) |
1303 | (lisp . t) | ||
1304 | (makefile . t) | ||
1284 | (python . t) | 1305 | (python . t) |
1285 | (racket . t))) | 1306 | (racket . t) |
1307 | ;; Diagrams | ||
1308 | (ditaa . t) | ||
1309 | (dot . t) | ||
1310 | (plantuml . t))) | ||
1286 | 1311 | ||
1312 | ;; Don't ask every time I want to evaluate something | ||
1287 | (setq org-confirm-babel-evaluate nil) | 1313 | (setq org-confirm-babel-evaluate nil) |
1288 | 1314 | ||
1315 | ;; Redisplay inline images after execute code block | ||
1316 | (add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images) | ||
1317 | |||
1289 | 1318 | ||
1290 | 1319 | ||
1291 | 1320 | ||