X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=jmax-bibtex.el;h=06f4396e57bfe398fed63e34c11b79903aff1bcb;hp=481916716231fddad9e06a8882b3c0cedf988664;hb=b9716231441af2e8aa5342710a34fc0a85a05ef4;hpb=d913795f9c55ad0ed55db2e30552d9523b01e115 diff --git a/jmax-bibtex.el b/jmax-bibtex.el index 4819167..06f4396 100644 --- a/jmax-bibtex.el +++ b/jmax-bibtex.el @@ -1,7 +1,7 @@ ;;; jmax-bibtex.el --- jmax-bibtex utilities ;;; Commentary: -;; Requires: s.el, dash.el, org-ref.el, doi-utils.el +;; Requires: s.el, dash.el, org-ref.el, doi-utils.el, key-chord.el ;;; Code: @@ -423,6 +423,8 @@ N is a prefix argument. If it is numeric, jump that many entries back." ;; hydra menu for actions on bibtex entries +(require 'hydra) +(require 'key-chord) (key-chord-define-global "jj" (defhydra jmax-bibtex-hydra (:color blue) @@ -468,8 +470,8 @@ _U_: Update entry _N_: Open notes _R_: Crossref _g_: Google Sch ("e" email-bibtex-entry) ("U" (doi-utils-update-bibtex-entry-from-doi (jmax-bibtex-entry-doi))))) -;; A hydra for adding new bibtex entries. +;; A hydra for adding new bibtex entries. (defhydra jmax-bibtex-new-entry (:color blue) "New Bibtex entry:" ("a" bibtex-Article "Article") @@ -487,9 +489,6 @@ _U_: Update entry _N_: Open notes _R_: Crossref _g_: Google Sch ("c" bibtex-InCollection "Article in collection")) - - - (defvar jmax-bibtex-menu-funcs '() "Functions to run in doi menu. Each entry is a list of (key menu-name function). The function must take one argument, the doi.")