1
0
Fork 0

Add ‘org-roam’ commands to my org hydra

This commit is contained in:
Tom Willemse 2021-01-31 21:42:29 -08:00
parent 5b99e2f9c0
commit a74e8817fa

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2021.0120.163357 ;; Version: 2021.0131.214204
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal org-roam) ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal org-roam)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -126,10 +126,12 @@ installs it will always be ~."
(defhydra oni-hydra-org (:color teal :hint nil) (defhydra oni-hydra-org (:color teal :hint nil)
" "
^Tasks^ ^Buffer^ ^Capture^ ^Tasks^ ^Buffer^ ^Capture^
^^--------------------------------------------------------------------- ^^^^^^---------------------------------------------------------------------
_a_: Show Agenda _b_: Switch to org buffer _t_: Note _a_: Show Agenda _b_: Switch to org buffer _t_: Note
_c_: Capture new heading _s_: Save all org buffers _A_: Appointment _c_: Capture new heading _s_: Save all org buffers _A_: Appointment
_l_: Store link ^^ _j_: Journal entry _l_: Store link ^^ _j_: Journal entry
^^ ^^ _f_: Add roam note
^^ ^^ _i_: Insert other note
" "
("l" org-store-link) ("l" org-store-link)
("a" org-agenda) ("a" org-agenda)
@ -138,7 +140,9 @@ _l_: Store link ^^ _j_: Journal entry
("s" org-save-all-org-buffers) ("s" org-save-all-org-buffers)
("t" (org-capture nil "t")) ("t" (org-capture nil "t"))
("A" (org-capture nil "a")) ("A" (org-capture nil "a"))
("j" (org-capture nil "j"))) ("j" (org-capture nil "j"))
("f" org-roam-find-file)
("i" org-roam-insert-immediate))
(defun oni-org-in-dblock-p () (defun oni-org-in-dblock-p ()
"Non-nil when point belongs to a dynamic block." "Non-nil when point belongs to a dynamic block."