From ae61456f76da041eed19517fba6809149690ba44 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Wed, 20 Dec 2023 14:15:19 +0100 Subject: [PATCH] added template for Masterarbeitsbesprechungen --- emacs/.config/doom/config.org | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/emacs/.config/doom/config.org b/emacs/.config/doom/config.org index 4d00452..77135cf 100644 --- a/emacs/.config/doom/config.org +++ b/emacs/.config/doom/config.org @@ -27,8 +27,8 @@ - [[#add-auto-compile-hook-for-tex-mode][Add auto-compile hook for TeX mode]] - [[#org-mode][Org Mode]] - [[#default-location][Default Location]] - - [[#enable-header-numbering][Enable Header Numbering]] - - [[#setup][Setup]] + - [[#visual][Visual]] + - [[#org-agenda-setup][Org Agenda Setup]] - [[#caldav-sync][CalDAV Sync]] - [[#org-roam][Org Roam]] @@ -442,12 +442,19 @@ This function could also become useful if we ever want to extend the compile com #+begin_src emacs-lisp :tangle config.el (setq org-directory "~/org/") #+end_src -** Enable Header Numbering +** Visual +*** Enable Header Numbering #+begin_src emacs-lisp :tangle config.el (setq org-startup-numerated t) #+end_src +*** Image Display as Default +[[https://emacs.stackexchange.com/questions/57603/how-to-always-display-inline-images-by-default-existing-solutions-dont-seem-to#comment89772_57607][this stackexchange comment]] states that this has to be done before the [[Add "~/org" to Agenda][adding the ~/org directory to Org Agenda]] +#+begin_src emacs-lisp :tangle config.el +(after! org + (setq org-startup-with-inline-images t)) +#+end_src -** ToDo Setup +** Org Agenda Setup *** Progress States To get a more nuanced overview of my current TODOs I add more progress states. | | TODO | BLOCKED | IN_PROGRESS | REVIEW | TESTING | | DONE | DELEGATED | CANCELED | @@ -498,3 +505,17 @@ Both the org files themselves and the database should be located in the same dir (setq org-roam-db-location "~/org/org-roam/org-roam.db") (org-roam-db-autosync-mode)) #+end_src +*** Note Templates +#+begin_src emacs-lisp :tangle config.el +(after! org-roam + (setq org-roam-capture-templates + '(("d" "default" plain + "%?" + :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") + :unnarrowed t) + ("b" "Besprechung Templates") + ("bm" "Besprechung Masterarbeit" plain + "* Aktueller Stand\n\n* Offene Fragen\n\n* TODOs\n" + :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: Masterarbeitsbesprechung ${title}\n") + :unnarrowed t)))) +#+end_src