From c2e9a919b69d4312b9f7efc12d9c98da290cad5a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 18 Apr 2021 16:13:28 -0700 Subject: Add ‘org-roam-insert’ to my Org hydra --- oni-org/oni-org.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'oni-org/oni-org.el') diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 5a3f9a3..3aa3ed5 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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 @@ -125,13 +125,14 @@ installs it will always be ~." ;;;###autoload(autoload 'oni-hydra-org/body "oni-org") (defhydra oni-hydra-org (:color teal :hint nil) " - ^Tasks^ ^Buffer^ ^Capture^ -^^^^^^--------------------------------------------------------------------- + ^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 "Couldn’t load org-roam, you should install ‘oni-org-roam’"))) ("i" (if (require 'oni-org-roam nil t) (call-interactively 'org-roam-insert-immediate) + (error "Couldn’t load org-roam, you should install ‘oni-org-roam’"))) + ("I" (if (require 'oni-org-roam nil t) + (call-interactively 'org-roam-insert) (error "Couldn’t load org-roam, you should install ‘oni-org-roam’")))) (defun oni-org-in-dblock-p () -- cgit v1.2.3-54-g00ecf