summaryrefslogtreecommitdiff
path: root/lisp/init-bib.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-26 01:59:44 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-26 01:59:44 -0500
commit7869360008d87ca4b459c703f4894625dd8181cc (patch)
treeb0f3f50ae2c309056883e03848abb3e1e4cb9b1e /lisp/init-bib.el
parent47e1d90700105f6b0f0550d7632a22b3fe81acb9 (diff)
downloademacs.d-7869360008d87ca4b459c703f4894625dd8181cc.tar.gz
Follow Purcell's emacs.d structure
User init files are added using provide/require. https://github.com/purcell/emacs.d
Diffstat (limited to 'lisp/init-bib.el')
-rw-r--r--lisp/init-bib.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/init-bib.el b/lisp/init-bib.el
new file mode 100644
index 0000000..7d91e93
--- /dev/null
+++ b/lisp/init-bib.el
@@ -0,0 +1,14 @@
+;; Make cite key have form <last author last name><year><first word>.
+(setq bibtex-autokey-year-length 4)
+(setq bibtex-autokey-titleword-length nil)
+(setq bibtex-autokey-titlewords-stretch 0)
+(setq bibtex-autokey-titlewords 1)
+(setq bibtex-autokey-year-title-separator "")
+
+(setq bibtex-autokey-titleword-ignore
+ '("A" "An" "On" "The" "Why" "How" "Where" "[0-9].*"))
+
+;; Used by `bibtex-fill-entry'.
+(setq bibtex-align-at-equal-sign t)
+
+(provide 'init-bib)