Skip to content

Commit

Permalink
[Emacs] Migrate from puml to plantuml mode
Browse files Browse the repository at this point in the history
See zwz/plantuml-mode#8 for details.
  • Loading branch information
colonelpanic8 committed Oct 17, 2016
1 parent 8aa9165 commit 441b6a6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ Intero seems to be causing hangs, so it has been disabled
(sp-local-pair 'org-mode "~" "~")

(add-to-list
'org-src-lang-modes '("plantuml" . puml))
'org-src-lang-modes '("plantuml" . plantuml))

(org-babel-do-load-languages
'org-babel-load-languages
Expand Down Expand Up @@ -3095,11 +3095,11 @@ Intero seems to be causing hangs, so it has been disabled
(progn
(add-hook 'markdown-mode-hook 'imalison:disable-linum-mode)))
#+END_SRC
*** puml-mode (plantuml-support)
*** plantuml-mode
This mode seems to be better maintained than plantuml-mode
#+BEGIN_SRC emacs-lisp
(use-package puml-mode
:commands puml-mode
(use-package plantuml-mode
:commands plantuml-mode
:mode ("\\.puml\\'" "\\.plantuml\\'")
:preface
(progn
Expand All @@ -3111,14 +3111,14 @@ This mode seems to be better maintained than plantuml-mode
(--first (s-ends-with? ".jar" it) (directory-files plantuml-dir))))
(filepath (when filename
(imalison:join-paths plantuml-dir filename))))
(setq puml-plantuml-jar-path filepath
(setq plantuml-jar-path filepath
org-plantuml-jar-path filepath)))
((equal system-type 'gnu/linux)
(let ((filepath "/opt/plantuml/plantuml.jar"))
(setq puml-plantuml-jar-path filepath
(setq plantuml-jar-path filepath
org-plantuml-jar-path filepath))))
(add-to-list
'org-src-lang-modes '("plantuml" . puml))))
'org-src-lang-modes '("plantuml" . plantuml))))
#+END_SRC
*** wsd-mode
#+BEGIN_SRC emacs-lisp
Expand Down

0 comments on commit 441b6a6

Please sign in to comment.