joostkremers / pandoc-mode

An Emacs minor mode for interacting with Pandoc.
https://joostkremers.github.io/pandoc-mode/
178 stars 14 forks source link

Added citation faces; partially satisfies issue #2 #22

Closed gbgar closed 9 years ago

gbgar commented 9 years ago

As promised on reddit a while back, here is my "pandoc-faces.el", but heavily modified from the original, which was limited to markdown and one face.

This addition to pandoc-mode.el should fontify any buffer in which pandoc-mode is activated, and remove the fontification if it is deactivated. In contrast to my original, provides four different customizable faces which include the brackets, the "marker" (@,-@), the "key" after the marker, and the "extra" bits such as page numbers. I think the default faces look nice on my setup, but more experienced folks might have better suggestions.

screenshot

Take it easy!

joostkremers commented 9 years ago

Thanks, looks great! I added a colon to the citation key regexes (I use colons a lot in my citation keys) and merged the code.