diff options
author | Guangxiong Lin <[email protected]> | 2022-03-04 23:12:45 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-04 23:12:45 +0800 |
commit | f512ce4b045ad65350616fe858a39dd5a520855e (patch) | |
tree | 2c2802819a48f3f162e14b0086b7edd851c75349 | |
parent | a54d51b5444af1063a11b540d7d880415d6b1890 (diff) | |
download | dotfiles-f512ce4b045ad65350616fe858a39dd5a520855e.tar.gz dotfiles-f512ce4b045ad65350616fe858a39dd5a520855e.tar.bz2 dotfiles-f512ce4b045ad65350616fe858a39dd5a520855e.zip |
Add plantuml-mode (emacs)
-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)) |