From 3ee90a75611ef1a2c75487b52aac799bf69daefd Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 20 Sep 2015 20:24:31 -0400 Subject: bibtex-clean-entry-hook: Set coding system Remove BOM character. --- lisp/init-bib.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lisp') 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) -- cgit v1.2.3