forked from colonelpanic/dotfiles
[Emacs] Migrate from puml to plantuml mode
See https://github.com/zwz/plantuml-mode/issues/8 for details.
This commit is contained in:
parent
dff010d861
commit
9d4db8563e
@ -2677,7 +2677,7 @@ Intero seems to be causing hangs, so it has been disabled
|
|||||||
(sp-local-pair 'org-mode "~" "~")
|
(sp-local-pair 'org-mode "~" "~")
|
||||||
|
|
||||||
(add-to-list
|
(add-to-list
|
||||||
'org-src-lang-modes '("plantuml" . puml))
|
'org-src-lang-modes '("plantuml" . plantuml))
|
||||||
|
|
||||||
(org-babel-do-load-languages
|
(org-babel-do-load-languages
|
||||||
'org-babel-load-languages
|
'org-babel-load-languages
|
||||||
@ -3095,11 +3095,11 @@ Intero seems to be causing hangs, so it has been disabled
|
|||||||
(progn
|
(progn
|
||||||
(add-hook 'markdown-mode-hook 'imalison:disable-linum-mode)))
|
(add-hook 'markdown-mode-hook 'imalison:disable-linum-mode)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** puml-mode (plantuml-support)
|
*** plantuml-mode
|
||||||
This mode seems to be better maintained than plantuml-mode
|
This mode seems to be better maintained than plantuml-mode
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package puml-mode
|
(use-package plantuml-mode
|
||||||
:commands puml-mode
|
:commands plantuml-mode
|
||||||
:mode ("\\.puml\\'" "\\.plantuml\\'")
|
:mode ("\\.puml\\'" "\\.plantuml\\'")
|
||||||
:preface
|
:preface
|
||||||
(progn
|
(progn
|
||||||
@ -3111,14 +3111,14 @@ This mode seems to be better maintained than plantuml-mode
|
|||||||
(--first (s-ends-with? ".jar" it) (directory-files plantuml-dir))))
|
(--first (s-ends-with? ".jar" it) (directory-files plantuml-dir))))
|
||||||
(filepath (when filename
|
(filepath (when filename
|
||||||
(imalison:join-paths plantuml-dir filename))))
|
(imalison:join-paths plantuml-dir filename))))
|
||||||
(setq puml-plantuml-jar-path filepath
|
(setq plantuml-jar-path filepath
|
||||||
org-plantuml-jar-path filepath)))
|
org-plantuml-jar-path filepath)))
|
||||||
((equal system-type 'gnu/linux)
|
((equal system-type 'gnu/linux)
|
||||||
(let ((filepath "/opt/plantuml/plantuml.jar"))
|
(let ((filepath "/opt/plantuml/plantuml.jar"))
|
||||||
(setq puml-plantuml-jar-path filepath
|
(setq plantuml-jar-path filepath
|
||||||
org-plantuml-jar-path filepath))))
|
org-plantuml-jar-path filepath))))
|
||||||
(add-to-list
|
(add-to-list
|
||||||
'org-src-lang-modes '("plantuml" . puml))))
|
'org-src-lang-modes '("plantuml" . plantuml))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** wsd-mode
|
*** wsd-mode
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
Loading…
Reference in New Issue
Block a user