diff options
author | Marius Peter <marius.peter@tutanota.com> | 2021-08-21 22:06:40 -0700 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2021-08-21 22:06:40 -0700 |
commit | efe594f8795cf320dfcd81ce950fa4857b925646 (patch) | |
tree | 5dcd6495d0880775236ef5c1c92322a842420e00 | |
parent | d5adea84ea48c40567a369d919c7ba7cd52bf856 (diff) |
Fixed plantuml-mode.
-rw-r--r-- | smart-documents.org | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/smart-documents.org b/smart-documents.org index 36b76ae..1efc090 100644 --- a/smart-documents.org +++ b/smart-documents.org @@ -799,27 +799,35 @@ Yeah, a Telegram client exists for Emacs. # Implement automatically downloading this kind of executable! #+BEGIN_SRC emacs-lisp :tangle yes - (setq org-plantuml-jar-path - (concat user-emacs-directory - "execs/plantuml.jar")) + (require 'plantuml-mode) + + (setq plantuml-default-exec-mode 'jar + plantuml-jar-path (concat user-emacs-directory + "execs/plantuml.jar") + org-plantuml-jar-path (concat user-emacs-directory + "execs/plantuml.jar")) #+END_SRC #+BEGIN_SRC plantuml :file img/uml.png -!theme plain -package "Package 1" as pkg1 { -node node1 -node node2 -} -package "Package 2" as pkg2 { -component "Component 1" as comp1 -component "Component 2" as comp2 -interface "Interface" as int -} - -pkg1 .. pkg2 - -comp1 --> int -comp2 --> int + @startuml doob.png + !theme cerulean-outline + title Example diagram with Plantuml + + package "Package 1" as pkg1 { + node node1 + node node2 + } + package "Package 2" as pkg2 { + component "Component 1" as comp1 + component "Component 2" as comp2 + interface "Interface" as int + } + + pkg1 .. pkg2 + + comp1 --> int + comp2 --> int + @enduml #+END_SRC #+RESULTS: |