diff options
author | fpi | 2021-01-04 15:46:32 +0100 |
---|---|---|
committer | fpi | 2022-03-17 14:37:55 +0100 |
commit | 5fdea9cabfb29645af73d9a36c37a2fbc1f9dea1 (patch) | |
tree | 1d444c10caddb803b535256d72a2ff254cd1f746 | |
parent | Add basic support for custom device configurations (diff) |
Add org-roam-todo
Diffstat (limited to '')
-rw-r--r-- | emacs-init.org | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/emacs-init.org b/emacs-init.org index 844abb0..99ce35c 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -3939,6 +3939,7 @@ Org-roam mainly provides a display of backlinks to the current file. This allows ("C-c n G" . fpi/org-roam-graph-with-exclude) ("C-c n t g" . fpi/org-roam-toggle-graph-executable) ("C-c n x" . org-roam-jump-to-index) + <<org-roam-bindings>> ) :map org-mode-map (("C-c n i" . org-roam-insert))) @@ -3956,9 +3957,25 @@ Org-roam mainly provides a display of backlinks to the current file. This allows (interactive "P") (let ((org-roam-graph-exclude-matcher (completing-read "Exclude matcher to use: " nil))) (org-roam-graph arg file node-query))) -) + <<org-roam-config>> + ) #+end_src Overwriting ~org-roam--file-link-face~ is a crude fix for hanging emacs. The original function calls file-exist-p which opens a slow tramp connection. + +The idea of ~fpi/org-roam-todo~ is from a post by [[https://oremacs.com/2020/12/31/happy-new-year/][aboabo]]. It lists all open todos in zettelkasten entries and is a (faster) alternative to running an todo agenda with ~org-agenda-files~ set to ~org-roam-directory~. +#+begin_src emacs-lisp :tangle no :noweb-ref org-roam-config +(defun fpi/org-roam-todo () + (interactive) + (setq unread-command-events + (listify-key-sequence (kbd "C-c C-o M->"))) + (counsel-rg "^\\*+ \\(NEXT\\|TODO\\)" org-roam-directory "--sort modified")) +#+end_src + +#+begin_src emacs-lisp :tangle no :noweb-ref org-roam-bindings +("C-c n t" . fpi/org-roam-todo) +#+end_src + + **** org-roam-protocol #+begin_src emacs-lisp (use-package org-roam-protocol |