PlantUML

about | blog | config | notes | github

1. UML Diagrams Made Easy

PlantUML a simple program that can help us very easily build UML diagrams. Even other types of diagrams are supported. Below is an example of what is possible.

plantuml_test.png

2. Configuration

2.1. System Package

Make sure to install the system package for plantuml, otherwise, we won't be able to interface with it.

(zamlz/system-packages-ensure "plantuml")

2.2. Major Mode

This sets up a major-mode for plantuml in GNU/Emacs. You can directly edit uml files now

(use-package plantuml-mode)

We need to configure the execution mode for plantuml-mode as well.

(setq plantuml-default-exec-mode 'executable)
(setq org-plantuml-exec-mode 'plantuml)

Let's also set the output type to txt so we get nice ASCII art

(setq plantuml-output-type "svg")

2.3. Feature Provide

(provide 'init-plantuml)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)