From 7f0986d2416f185d7a0bcf52d09e32cfd3cc4877 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 19 Jan 2015 21:34:52 -0500 Subject: Use hook to run bibtex-use-title-case --- lisp/init-bib.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lisp/init-bib.el') 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. -- cgit v1.2.3