Write textual uml diagram from emacs using yuml.me
From :
(start)->(test)-><a>[yes]->(action 1)->(end),<a>[no]->(action 2)->(end)
Get :
- Select from various output format to generate diagram : jpg,pdf,png or svg (customize-group: eyuml)
- s (emacs library)
- request (emacs library)
You can use melpa:
M-x package-install RET eyuml
or you can pull it from here and you have to add in your emacs config :
(add-to-list 'load-path "/path/to/eyuml-directory")
(require 'eyuml)
You get three functions (for every sort of diagram) that you can map :
(global-set-key (kbd "C-c a") 'eyuml-create-activity-diagram)
(global-set-key (kbd "C-c c") 'eyuml-create-class-diagram)
(global-set-key (kbd "C-c u") 'eyuml-create-usecase-diagram)
Write your diagram in a buffer, save it and run one of this function according to your diagram. As a result, you get a picture next to the place where you recorded your diagram.
First you need to install cask :
curl -fsSkL https://raw.github.com/cask/cask/master/go | python
Add cask to your path :
export PATH=$PATH:/home/YOUR_USERNAME/.cask/bin
Download dependencies using cask :
make downloads
Run tests :
make test