From 70ab97c521ea940b2c72480a20b43cd96e2876c5 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 29 Mar 2015 00:37:33 -0400 Subject: bibtex-use-title-case: Don't touch commands --- lisp/init-bib.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/init-bib.el b/lisp/init-bib.el index 55d433b..1a0cd20 100644 --- a/lisp/init-bib.el +++ b/lisp/init-bib.el @@ -53,6 +53,8 @@ all other words unless they are protected by brackets." (string= (match-string 3) "}")) ;; Go to previous character in case '}' is within the word. (backward-char)) + ;; Leave commands alone. + ((string= (match-string 1) "\\")) ;; Capitalize the first word of the title. This will fail if ;; there is a space after '{'. ((= (match-beginning 1) beg) -- cgit v1.2.3