config/doom: update plantuml indent and add org-journal template

This commit is contained in:
xeruf 2022-04-28 01:48:22 +02:00
parent e8078f3e6f
commit 65275f4999
2 changed files with 12 additions and 1 deletions

View File

@ -388,6 +388,16 @@ Version 2019-11-04 2021-02-16"
org-journal-time-format "%02H "
)
:config
;; https://emacs.stackexchange.com/questions/17897/create-an-org-journal-template-for-daily-journal-entry/32655#32655
(defun pc/new-buffer-p ()
(not (file-exists-p (buffer-file-name))))
(defun pc/insert-journal-template ()
(when (pc/new-buffer-p)
(save-excursion
(goto-char (point-min))
(insert "#+startup: overview noinlineimages\n#+options: \\n:t\n"))))
(add-hook 'org-journal-after-entry-create-hook #'pc/insert-journal-template)
(defvar my/survey-mode-journal--timer nil)
(defvar my/survey-mode-journal--timer-interval 300)
@ -711,6 +721,7 @@ Version 2019-11-04 2021-02-16"
plantuml-jar-path "/usr/share/java/plantuml/plantuml.jar"
org-plantuml-jar-path plantuml-jar-path
plantuml-java-args '("-Djava.awt.headless=true" "-jar")
plantuml-indent-level 4
)
(after! org
(org-babel-do-load-languages 'org-babel-load-languages '((plantuml . t)))

View File

@ -81,7 +81,7 @@
(unpin! plantuml-mode)
(package! plantuml-mode
:recipe (:host github :repo "a1exsh/plantuml-mode"))
:recipe (:host github :repo "xeruf/plantuml-mode"))
(package! twee-mode
:recipe (:host github :repo "magoyette/twee-mode"))