summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-09-20 20:24:31 -0400
committerKyle Meyer <kyle@kyleam.com>2015-09-20 20:24:31 -0400
commit3ee90a75611ef1a2c75487b52aac799bf69daefd (patch)
treef2087283d59653bdf9b349840b1eaf796dd7318b
parent8c1923f18a6fc8cb4543d1f66674626c9dbb2b93 (diff)
downloademacs.d-3ee90a75611ef1a2c75487b52aac799bf69daefd.tar.gz
bibtex-clean-entry-hook: Set coding system
Remove BOM character.
-rw-r--r--lisp/init-bib.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/init-bib.el b/lisp/init-bib.el
index d35dea1..8cc4a1a 100644
--- a/lisp/init-bib.el
+++ b/lisp/init-bib.el
@@ -17,6 +17,7 @@
(add-hook 'bibtex-clean-entry-hook 'km/bibtex-single-space-author-list)
(add-hook 'bibtex-clean-entry-hook 'km/bibtex-pages-use-double-hyphen)
(add-hook 'bibtex-clean-entry-hook 'km/bibtex-remove-doi-leader)
+(add-hook 'bibtex-clean-entry-hook 'km/bibtex-set-coding-system)
(defvar km/bibtex-unimportant-title-words
'("a" "aboard" "about" "above" "absent" "across" "after" "against"
@@ -90,6 +91,9 @@ all other words unless they are protected by brackets."
(goto-char beg)
(fill-paragraph)))))
+(defun km/bibtex-set-coding-system ()
+ (set-buffer-file-coding-system 'utf-8))
+
(defun km/bibtex-pages-use-double-hyphen ()
"Use double hyphen for page range."
(interactive)