Add plantuml babel

This commit is contained in:
Samuel Ortion 2024-01-26 13:55:14 +01:00
parent 9c16af9e7c
commit 62bb0cd205
2 changed files with 21 additions and 3 deletions

View File

@ -95,7 +95,7 @@ Disable LateX preview in Org-mode by default
** Enable conda environment in a Org-mode ** Enable conda environment in a Org-mode
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle no
(require 'conda) (require 'conda)
(conda-env-initialize-interactive-shells) (conda-env-initialize-interactive-shells)
#+end_src #+end_src
@ -146,3 +146,21 @@ systemctl --user enable --now emacs
#+RESULTS: #+RESULTS:
: vim-save : vim-save
* PlantUML
#+begin_src emacs-lisp :tangle yes
(setq plantuml-default-exec-mode 'executable)
;; (setq plantuml-default-exec-mode 'jar)
(setq plantuml-executable-path "/usr/bin/plantuml")
;; setup plantuml for org-babel
(add-to-list 'org-src-lang-modes '("plantuml" . plantuml))
(setq org-plantuml-exec-mode 'executable)
(setq org-plantuml-executable-path plantuml-executable-path)
;; (require 'ob-plantuml) ; OBSOLETED
(setq org-plantuml-jar-path "/usr/share/java/plantuml.jar")
;; (setq plantuml-jar-args '())
;; Enable puml-mode for PlantUML files
(add-to-list 'auto-mode-alist '("\\.puml\\'" . plantuml-mode))
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
#+end_src

View File

@ -49,7 +49,7 @@
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;(unpin! t) ;(unpin! t)
(package! conda) ; (package! conda)
(package! quarto-mode) (package! quarto-mode)
@ -59,7 +59,7 @@
(package! pasp-mode) (package! pasp-mode)
(package! ob-pasp (package! ob-pasp
:recipe (:local-repo "~/Documents/Projects/ob-pasp")) :recipe (:host github :repo "UncleSamulus/ob-pasp"))
(package! ox-hugo) (package! ox-hugo)