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 /.emacs.d/lisp/init-lang.el | |
parent | a54d51b5444af1063a11b540d7d880415d6b1890 (diff) | |
download | dotfiles-f512ce4b045ad65350616fe858a39dd5a520855e.tar.gz dotfiles-f512ce4b045ad65350616fe858a39dd5a520855e.tar.bz2 dotfiles-f512ce4b045ad65350616fe858a39dd5a520855e.zip |
Add plantuml-mode (emacs)
Diffstat (limited to '.emacs.d/lisp/init-lang.el')
-rw-r--r-- | .emacs.d/lisp/init-lang.el | 14 |
1 files changed, 14 insertions, 0 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) |