Add org-roam config

This commit is contained in:
Evie Litherland-Smith 2024-01-29 10:10:03 +00:00
parent 28756ed3f1
commit 67938b7f63

View file

@ -446,6 +446,32 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(keymap-global-set "C-c o l" #'org-capture-goto-last-stored) (keymap-global-set "C-c o l" #'org-capture-goto-last-stored)
#+end_src #+end_src
** org-roam
#+begin_src emacs-lisp
(use-package org-roam
:ensure t
:after org
:diminish
:bind (("C-c o r i" . org-roam-node-insert)
("C-c o r f" . org-roam-node-find)
("C-c o r n" . org-roam-capture))
:custom
(org-roam-directory (expand-file-name "roam" org-directory))
(org-roam-node-display-template (concat "${title:*} "
(propertize "${tags:10}" 'face 'org-tag)))
:init
(add-to-list 'display-buffer-alist
'("\\*org-roam\\*"
(display-buffer-in-side-window)
(side . right)
(slot . 0)
(window-width . 0.33)
(window-parameters . ((no-other-window . t)
(no-delete-other-windows . t)))))
:config
(org-roam-db-autosync-mode +1))
#+end_src
** org-agenda ** org-agenda
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(setq org-agenda-span 'day (setq org-agenda-span 'day