There are several ways to use PlantUML and Emacs together :


Luca Greco has started a set of helpers to edit, render, preview PlantUML code from Emacs.


Org-Babel now supports blocks of plantuml code.

There is also an Emacs mode for PlantUML

Thanks to Zhang Weize for adding this support.

Emacs Org-Mode

You can also use PlantUML with Emacs org-mode.

You will find the needed macro at the following address

Once installed, embed PlantUML code in Emacs org-mode is used like this:

  Alice -> Bob: Authentication Request
  Bob --> Alice: Authentication Response
While the org file is exported to HTML or other formats, PlantUML is called to generate image and replace the block in place.

Thanks to Ian Yang for the work done.