Re: [Ebib-users] elisp function to start ebib on specified bibtex entry
Brought to you by:
joostkremers
From: Ali T. <ali...@gm...> - 2010-12-08 16:45:19
|
Hi Joost, On Wed, Dec 8, 2010 at 08:15, Joost Kremers <joo...@fa...> wrote: > In fact, I'm considering whether it wouldn't make more sense to just let the > main function `ebib' take an optional argument. It would function much the same > way as `ebib-start-on-entry', except that if you call `ebib' without any > argument, it just starts Ebib the way it does now. (So it wouldn't ask you on > which entry you want to start. It would still be possible to get that > functionality by calling `ebib' with a prefix argument.) I'm guessing you're not > going to use `ebib-start-on-entry' interactively, are you? In that case, I think > I should just include the functionality in the function `ebib' itself, rather > than have a special function for it. No, I'm not planning to use the function interactively. I think it makes a lot of sense to just extend the functionality of 'ebib'. Makes for a very clean interface imo. >> I'll let you know once I set things up with org-mode. > > Yeah, that would be great. :-) I have now set up the connection between org-mode and ebib and it works great! It was easier than I had anticipated. I just added three lines to my .emacs: (org-add-link-type "ebib" 'org-ebib-open) (defun org-ebib-open (path) (ebib-start-on-entry path)) Now I can insert ebib links like this: [[ebib:Jones1998][some paper title]] and open them in ebib by opening the link in org-mode. I'm planning to write about this on the org-mode mailing list. Do you want me to wait until you have rewritten the 'ebib' function? Cheers, /Ali |