Enable plantuml-server, add plantuml-mode to emacs
This commit is contained in:
parent
51f8720902
commit
59cee7f975
2 changed files with 18 additions and 0 deletions
|
@ -1702,6 +1702,17 @@ Configure eglot to use the Gleam LSP server
|
|||
'(gleam-ts-mode . ("gleam" "lsp"))))
|
||||
#+end_src
|
||||
|
||||
*** PlantUML
|
||||
|
||||
[[https://plantuml.com][PlantUML]] is a tool to generate a wide variety of diagrams, like sequence, usecase and class diagrams.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package plantuml-mode
|
||||
:config
|
||||
(setq plantuml-default-exec-mode 'server
|
||||
plantuml-server-url "http://localhost:5080/plantuml"))
|
||||
#+end_src
|
||||
|
||||
* Org
|
||||
|
||||
** Main org setup
|
||||
|
@ -1768,6 +1779,8 @@ Configuration
|
|||
#+name: org-config
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
|
||||
(add-to-list
|
||||
'org-src-lang-modes '("plantuml" . plantuml))
|
||||
(dolist (face '((org-level-1 . 1.2)
|
||||
(org-level-2 . 1.1)
|
||||
(org-level-3 . 1.05)
|
||||
|
|
|
@ -443,6 +443,11 @@
|
|||
# user = "erwin";
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
plantuml-server = {
|
||||
enable = true;
|
||||
listenPort = 5080;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
Loading…
Reference in a new issue