1
0
Fork 0

Add ‘org-roam-insert’ to my Org hydra

This commit is contained in:
Tom Willemse 2021-04-18 16:13:28 -07:00
parent ec512f18c9
commit c2e9a919b6

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2021.0407.213253
;; Version: 2021.0418.161240
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal)
;; This program is free software; you can redistribute it and/or modify
@ -126,12 +126,13 @@ installs it will always be ~."
(defhydra oni-hydra-org (:color teal :hint nil)
"
^Tasks^ ^Buffer^ ^Capture^
^^^^^^---------------------------------------------------------------------
^^^^^^------------------------------------------------------------------------
_a_: Show Agenda _b_: Switch to org buffer _t_: Note
_c_: Capture new heading _s_: Save all org buffers _A_: Appointment
_l_: Store link ^^ _j_: Journal entry
^^ ^^ _f_: Add roam note
^^ ^^ _i_: Insert other note
^^ ^^ _I_: Insert and edit note
"
("l" org-store-link)
("a" org-agenda)
@ -146,6 +147,9 @@ _l_: Store link ^^ _j_: Journal entry
(error "Couldnt load org-roam, you should install oni-org-roam")))
("i" (if (require 'oni-org-roam nil t)
(call-interactively 'org-roam-insert-immediate)
(error "Couldnt load org-roam, you should install oni-org-roam")))
("I" (if (require 'oni-org-roam nil t)
(call-interactively 'org-roam-insert)
(error "Couldnt load org-roam, you should install oni-org-roam"))))
(defun oni-org-in-dblock-p ()