Added org roam templates

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2023-02-10 12:46:06 +01:00
parent fef8f0852c
commit d41cfc85ff
5 changed files with 32 additions and 5 deletions

View File

@@ -129,3 +129,17 @@
; Roam
(setq org-roam-directory "~/Documents/roam/")
(use-package! websocket
:after org-roam)
(use-package! org-roam-ui
:after org-roam ;; or :after org
;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have
;; a hookable mode anymore, you're advised to pick something yourself
;; if you don't care about startup time, use
;; :hook (after-init . org-roam-ui-mode)
:config
(setq org-roam-ui-sync-theme t
org-roam-ui-follow t
org-roam-ui-update-on-save t
org-roam-ui-open-on-start t))

View File

@@ -3,7 +3,16 @@
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(warning-suppress-types '((org-element-cache) (defvaralias))))
'(org-roam-capture-templates
'(("d" "default" plain "%?" :target
(file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}")
:unnarrowed t)
("p" "project" plain "* Project Description\n\n- Type: %^{Project Type}\n- Project Partner: %?\n\n* Tasks\n\n** TODO Add initial taks\n\n* Deadlines\n" :target
(file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}")
:unnarrowed t)
("l" "lecture" plain "- Lecture: ${title}\\n\\n- Lecturer: %^{Docent}\\n- Research Group: %^{Research Group}\\n* Description\\n\\n " :target
(file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}")
:unnarrowed t nil nil))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

View File

@@ -54,3 +54,6 @@
(package! lsp-ui)
(package! flycheck)
(package! ledger-mode)
(unpin! org-roam)
(package! org-roam-ui)