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:
parent
1e0da964a4
commit
1b6972b09f
1 changed files with 3 additions and 3 deletions
|
@ -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 "Couldn’t 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 "Couldn’t load org-roam, you should install ‘oni-org-roam’"))))
|
||||
|
||||
(defun oni-org-in-dblock-p ()
|
||||
|
|
Loading…
Reference in a new issue