diff options
-rw-r--r-- | init.el | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -852,6 +852,16 @@ | |||
852 | '(:immediate-finish))))) | 852 | '(:immediate-finish))))) |
853 | (apply #'org-roam-node-insert args))) | 853 | (apply #'org-roam-node-insert args))) |
854 | 854 | ||
855 | ;; Capture notes quickly into an inbox to be dealt with later | ||
856 | (defun mm/org-roam-capture-inbox () | ||
857 | "Capture something to `inbox.org'" | ||
858 | (interactive) | ||
859 | (org-roam-capture- :node (org-roam-node-create) | ||
860 | :templates '(("i" "inbox" plain "\n* [%<%Y-%m-%d %a %H:%M>] %?" | ||
861 | :if-new (file+head "inbox.org" | ||
862 | "#+TITLE: Inbox\n"))))) | ||
863 | (global-set-key (kbd "C-c n c") 'mm/org-roam-capture-inbox) | ||
864 | |||
855 | ;; Add Dendron-like note refactoring functionality | 865 | ;; Add Dendron-like note refactoring functionality |
856 | ;; This was taken from https://github.com/vicrdguez/dendroam | 866 | ;; This was taken from https://github.com/vicrdguez/dendroam |
857 | (cl-defmethod mm/org-roam-node-current-file (node) | 867 | (cl-defmethod mm/org-roam-node-current-file (node) |
@@ -938,7 +948,7 @@ | |||
938 | (require 'org-roam-dailies) | 948 | (require 'org-roam-dailies) |
939 | (setq org-roam-dailies-directory "") | 949 | (setq org-roam-dailies-directory "") |
940 | :bind (("C-c n f" . org-roam-node-find) | 950 | :bind (("C-c n f" . org-roam-node-find) |
941 | ("C-c n c" . org-roam-capture) | 951 | ("C-c n c" . mm/org-roam-capture-inbox) |
942 | ("C-c n d t" . org-roam-dailies-goto-today) | 952 | ("C-c n d t" . org-roam-dailies-goto-today) |
943 | ("C-c n d y" . org-roam-dailies-goto-yesterday) | 953 | ("C-c n d y" . org-roam-dailies-goto-yesterday) |
944 | ("C-c n i" . mm/org-roam-node-insert-immediate) | 954 | ("C-c n i" . mm/org-roam-node-insert-immediate) |
@@ -973,7 +983,9 @@ | |||
973 | (org-indent-mode) | 983 | (org-indent-mode) |
974 | :config | 984 | :config |
975 | (setq org-agenda-start-with-log-mode t | 985 | (setq org-agenda-start-with-log-mode t |
976 | org-agenda-files '("~/kb/agenda.org") | 986 | org-agenda-files '("~/kb/agenda.org" |
987 | "~/kb/agenda.archive.org" | ||
988 | "~/kb/inbox.org") | ||
977 | org-todo-keywords | 989 | org-todo-keywords |
978 | '((sequence "TODO(t)" "IN-PROGRESS(i)" "WAITING(w)" "HOLD(h)" | 990 | '((sequence "TODO(t)" "IN-PROGRESS(i)" "WAITING(w)" "HOLD(h)" |
979 | "REVIEW(re)" "|" "DONE(d)" "CANCELED(ca)") | 991 | "REVIEW(re)" "|" "DONE(d)" "CANCELED(ca)") |