Playing with org-roam

This commit is contained in:
Derek Taylor
2023-01-10 11:30:50 -06:00
parent 9b5c67d1bc
commit 36bac70273
3 changed files with 27 additions and 5 deletions

View File

@@ -366,6 +366,7 @@
:desc "Org babel tangle" "m B" #'org-babel-tangle)
(after! org
(setq org-directory "~/nc/Org/"
org-roam-directory "~/nc/Org/roam/"
org-default-notes-file (expand-file-name "notes.org" org-directory)
org-ellipsis ""
org-superstar-headline-bullets-list '("" "" "" "" "" "" "")
@@ -719,6 +720,14 @@
:config
(setq org-auto-tangle-default t))
(map! :leader
(:prefix ("n r" . "org-roam")
:desc "Capture node" "c" #'org-roam-capture
:desc "Find node" "f" #'org-roam-node-find
:desc "Show graph" "g" #'org-roam-graph
:desc "Insert node" "i" #'org-roam-node-insert
:desc "Toggle roam buffer" "r" #'org-roam-buffer-toggle))
(use-package! password-store)
(map! :leader

View File

@@ -47,6 +47,7 @@
- [[#org-publish][Org-publish]]
- [[#org-agenda][Org-agenda]]
- [[#org-auto-tangle][Org-auto-tangle]]
- [[#org-roam][Org-roam]]
- [[#password-store][PASSWORD STORE]]
- [[#perspective][PERSPECTIVE]]
- [[#rainbow-mode][RAINBOW MODE]]
@@ -757,13 +758,14 @@ Keybindings to open files that I work with all the time using the find-file comm
* ORG MODE
I wrapped most of this block in (after! org). Without this, my settings might be evaluated too early, which will result in my settings being overwritten by Doom's defaults. I have also enabled org-journal, org-superstar and org-roam by adding (+journal +pretty +roam2) to the org section of my Doom Emacs init.el.
=NOTE:= I have the location of my Org directory and Roam directory in $HOME/nc/ which is a Nextcloud folder that allows me to instantly sync all of my Org work between my home computer and my office computer.
=NOTE=: I have the location of my Org directory and Roam directory in $HOME/nc/ which is a Nextcloud folder that allows me to instantly sync all of my Org work between my home computer and my office computer.
#+BEGIN_SRC emacs-lisp
(map! :leader
:desc "Org babel tangle" "m B" #'org-babel-tangle)
(after! org
(setq org-directory "~/nc/Org/"
org-roam-directory "~/nc/Org/roam/"
org-default-notes-file (expand-file-name "notes.org" org-directory)
org-ellipsis ""
org-superstar-headline-bullets-list '("" "" "" "" "" "" "")
@@ -1135,9 +1137,6 @@ We need ox-man for "Org eXporting" to manpage format and ox-gemini for exporting
#+end_src
#+RESULTS:
| v | A better agenda view | ((tags PRIORITY="A" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) (org-agenda-overriding-header High-priority unfinished tasks:))) (tags PRIORITY="B" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) (org-agenda-overriding-header Medium-priority unfinished tasks:))) (tags PRIORITY="C" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) (org-agenda-overriding-header Low-priority unfinished tasks:))) (tags customtag ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) (org-agenda-overriding-header Tasks marked with customtag:))) (agenda ) (alltodo )) |
** Org-auto-tangle
=org-auto-tangle= allows you to add the option =#+auto_tangle: t= in your Org file so that it automatically tangles when you save the document.
@@ -1150,6 +1149,19 @@ We need ox-man for "Org eXporting" to manpage format and ox-gemini for exporting
#+end_src
** Org-roam
#+begin_src emacs-lisp
(map! :leader
(:prefix ("n r" . "org-roam")
:desc "Capture node" "c" #'org-roam-capture
:desc "Find node" "f" #'org-roam-node-find
:desc "Show graph" "g" #'org-roam-graph
:desc "Insert node" "i" #'org-roam-node-insert
:desc "Toggle roam buffer" "r" #'org-roam-buffer-toggle))
#+end_src
* PASSWORD STORE
Uses the standard Unix password store "pass".

View File

@@ -149,8 +149,9 @@
(org
+dragndrop
+journal ; enable org journal
+roam2 ; create a personal wiki
+pretty ; replace asterisks with pretty org bullets
+publish) ; create static websites with org
+publish) ; create static websites with org
php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional