Skip to content

Emacs company-mode completion back-end for Bibtex keys.

Notifications You must be signed in to change notification settings

siqil/company-bibtex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

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"))

The regular expression matching key names alphanumeric characters, dashes (-), and underscores (_). This is customizable via company-bibtex-key-regex:

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

About

Emacs company-mode completion back-end for Bibtex keys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%