From 1b6972b09f2ca76a1d2d263475d4a0c2830b8ade Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 29 Mar 2021 10:00:50 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=98org-roam-insert-immediate?= =?UTF-8?q?=E2=80=99=20use=20in=20=E2=80=98oni-hydra-org=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- oni-org/oni-org.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index c5b3b5d..ae53cb1 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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 ()