summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-01-19 21:34:52 -0500
committerKyle Meyer <kyle@kyleam.com>2015-01-19 21:34:52 -0500
commit7f0986d2416f185d7a0bcf52d09e32cfd3cc4877 (patch)
treea6f867468180ab3aee1f46410ca1f901abdc6229
parenteefbdf5d92a9a7e2264794c01849c3551195557f (diff)
downloademacs.d-7f0986d2416f185d7a0bcf52d09e32cfd3cc4877.tar.gz
Use hook to run bibtex-use-title-case
-rw-r--r--lisp/init-bib.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/init-bib.el b/lisp/init-bib.el
index 420ca06..b03af20 100644
--- a/lisp/init-bib.el
+++ b/lisp/init-bib.el
@@ -51,8 +51,7 @@ capitalized."
(backward-word)
(capitalize-word 1))))))
-(defadvice bibtex-clean-entry (before convert-to-title-case activate)
- (km/bibtex-use-title-case))
+(add-hook 'bibtex-clean-entry-hook 'km/bibtex-use-title-case)
(defun km/browse-doi (doi)
"Open DOI in browser.