1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- (require 'org)
- (org-link-set-parameters "ebib"
- :follow #'org-ebib-open
- :store #'org-ebib-store-link)
- (defun org-ebib-open (key)
- "Open Ebib and jump to KEY."
- (ebib nil key))
- (defun org-ebib-store-link ()
- "Store a key to an Ebib entry."
- (when (memq major-mode '(ebib-index-mode ebib-entry-mode))
-
- (let* ((key (ebib-cur-entry-key))
- (link (concat "ebib:" key))
- (description (ignore-errors (ebib-db-get-field-value 'title key ebib-cur-db))))
- (org-store-link-props
- :type "ebib"
- :link link
- :description description))))
- (provide 'org-ebib)
|