joostkremers / ebib

A BibTeX database manager for Emacs.
https://joostkremers.github.io/ebib/
BSD 3-Clause "New" or "Revised" License
272 stars 37 forks source link

Enable Emacs Lisp function as file handler in `ebib-file-associations` #259

Closed zyxir closed 2 years ago

zyxir commented 2 years ago

This PR is based on #258. Now Emacs Lisp functions could be used as file opener for Ebib.

Related docstring, defcustom type and function logic have been modified. Additionally, ebib--call-file-viewer will signal an error if an invalid file handler is assigned now.

The related section in the Ebib Manual is not modified due to my poor English skills, my different literature style with the original author, and my lack of the knowledge to hook the manual/ebib.text file with the website.

joostkremers commented 2 years ago

Thanks, this looks good. I'll try it out and hopefully merge it soon.

joostkremers commented 2 years ago

Merged, thanks!