summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-16 19:06:34 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-16 19:06:34 -0500
commit0f0b2754c5b5ca1c27bca866de40ae0141b8fbe1 (patch)
tree8ef8afbaadb038ff045a35c7c3d72b4263fefa98
parent7f5c295099d74075b8fcafcc2099fb0eeb104af8 (diff)
downloademacs.d-0f0b2754c5b5ca1c27bca866de40ae0141b8fbe1.tar.gz
Add settings for bibtex-mode
-rw-r--r--init/km-bib.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/init/km-bib.el b/init/km-bib.el
new file mode 100644
index 0000000..af21480
--- /dev/null
+++ b/init/km-bib.el
@@ -0,0 +1,12 @@
+;; 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)