1
0
Fork 0

Fix ‘org-roam-insert-immediate’ use in ‘oni-hydra-org’

This still probably calls ‘org-roam-insert-immediate’ incorrectly, but it fixes
it for my current use case. I’ve changed the call to ‘org-roam-find-file’ in a
similar manner in case it ever starts asking me interactively for things.
This commit is contained in:
Tom Willemse 2021-03-29 10:00:50 -07:00
parent 1e0da964a4
commit 1b6972b09f

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2021.0325.201211
;; Version: 2021.0329.100019
;; 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
@ -142,10 +142,10 @@ _l_: Store link ^^ _j_: Journal entry
("A" (org-capture nil "a"))
("j" (org-capture nil "j"))
("f" (if (require 'oni-org-roam nil t)
(org-roam-find-file)
(call-interactively 'org-roam-find-file)
(error "Couldnt load org-roam, you should install oni-org-roam")))
("i" (if (require 'oni-org-roam nil t)
(org-roam-insert-immediate)
(call-interactively 'org-roam-insert-immediate)
(error "Couldnt load org-roam, you should install oni-org-roam"))))
(defun oni-org-in-dblock-p ()