From 62bb0cd205f9f7ae54bb69a2dc2ace0f903094cf Mon Sep 17 00:00:00 2001 From: Samuel Ortion Date: Fri, 26 Jan 2024 13:55:14 +0100 Subject: [PATCH] Add plantuml babel --- config.org | 20 +++++++++++++++++++- packages.el | 4 ++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index e03b021..2198adc 100644 --- a/config.org +++ b/config.org @@ -95,7 +95,7 @@ Disable LateX preview in Org-mode by default ** Enable conda environment in a Org-mode -#+begin_src emacs-lisp :tangle yes +#+begin_src emacs-lisp :tangle no (require 'conda) (conda-env-initialize-interactive-shells) #+end_src @@ -146,3 +146,21 @@ systemctl --user enable --now emacs #+RESULTS: : 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 diff --git a/packages.el b/packages.el index c82b01d..a078a9e 100644 --- a/packages.el +++ b/packages.el @@ -49,7 +49,7 @@ ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;(unpin! t) -(package! conda) + ; (package! conda) (package! quarto-mode) @@ -59,7 +59,7 @@ (package! pasp-mode) (package! ob-pasp - :recipe (:local-repo "~/Documents/Projects/ob-pasp")) + :recipe (:host github :repo "UncleSamulus/ob-pasp")) (package! ox-hugo)