Enable plantuml-server, add plantuml-mode to emacs

This commit is contained in:
Erwin Boskma 2024-12-16 16:15:25 +01:00
parent 51f8720902
commit 59cee7f975
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg
2 changed files with 18 additions and 0 deletions

View file

@ -1702,6 +1702,17 @@ Configure eglot to use the Gleam LSP server
'(gleam-ts-mode . ("gleam" "lsp")))) '(gleam-ts-mode . ("gleam" "lsp"))))
#+end_src #+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 * Org
** Main org setup ** Main org setup
@ -1768,6 +1779,8 @@ Configuration
#+name: org-config #+name: org-config
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle no
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (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) (dolist (face '((org-level-1 . 1.2)
(org-level-2 . 1.1) (org-level-2 . 1.1)
(org-level-3 . 1.05) (org-level-3 . 1.05)

View file

@ -443,6 +443,11 @@
# user = "erwin"; # user = "erwin";
openFirewall = true; openFirewall = true;
}; };
plantuml-server = {
enable = true;
listenPort = 5080;
};
}; };
programs = { programs = {