Emacs company-mode completion back-end for Bibtex keys.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
README.md Clarify variable description in readme Jul 9, 2018
company-bibtex.el allow multiple keys Oct 1, 2017

README.md

company-bibtex provides a backend for the company-mode framework, enabling completion of bibtex keys in modes used for prose writing. This backend activates for citation styles used by pandoc-mode (@), latex-mode (\cite{}), and org-mode (ebib:).

Initialization

Load the package and add company-bibtex to company-backends:

(require 'company-bibtex)
(add-to-list 'company-backends 'company-bibtex)

Customization

company-bibtex reads from a bibliography file or files specified in company-bibtex-bibliography:

(setq company-bibtex-bibliography
	'("/home/cooluser/thesis/thesis1.bib"
	  "/home/cooluser/thesis/thesi2.bib"))

company-bibtex-key-regex is the regular expression for matching acceptable key names. Alphanumeric characters, dashes (-), and underscores (_) are acceptable by default: company-bibtex-key-regex:

(setq company-bibtex-key-regex "[[:alnum:]+_]*")