diff options
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-lang.el | 14 | ||||
-rw-r--r-- | .emacs.d/lisp/init-org.el | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el index cc5b105..7f0de9e 100644 --- a/.emacs.d/lisp/init-lang.el +++ b/.emacs.d/lisp/init-lang.el @@ -40,4 +40,18 @@ (use-package realgud :ensure t) +(use-package plantuml-mode + :ensure t + :defer t + :init + (add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode)) + :config + (setq plantuml-jar-path "~/.local/bin/plantuml.jar" + plantuml-default-exec-mode 'jar + org-plantuml-jar-path "~/.local/bin/plantuml.jar" + org-plantuml-default-exec-mode 'jar) + (add-to-list 'org-src-lang-modes '("plantuml" . plantuml)) + (unless (file-readable-p plantuml-jar-path) + (plantuml-download-jar))) + (provide 'init-lang) diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 69fc0ff..b59cdfa 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -74,7 +74,8 @@ ;; org babel (org-babel-do-load-languages 'org-babel-load-languages - '((shell . t))) + '((shell . t) + (plantuml . t))) ;; org-habit (add-to-list 'org-modules 'org-habit t)) |