aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2020-12-10 09:44:25 +0100
committerStefan Kangas2020-12-10 17:24:46 +0100
commit904c327ae89399321ed13bc8ca59d5b4e7c007cf (patch)
treecf2da8c2a7dba64a943ac129a93073de92e7a3b0
parent97c2bca729862ef5f50b03997e47b63b97b0d2c2 (diff)
downloademacs-904c327ae89399321ed13bc8ca59d5b4e7c007cf.tar.gz
emacs-904c327ae89399321ed13bc8ca59d5b4e7c007cf.zip
Prefer setq-local in bibtex-style.el
* lisp/textmodes/bibtex-style.el (bibtex-style-mode): Prefer setq-local.
-rw-r--r--lisp/textmodes/bibtex-style.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/textmodes/bibtex-style.el b/lisp/textmodes/bibtex-style.el
index 952b81621e9..41650eb4371 100644
--- a/lisp/textmodes/bibtex-style.el
+++ b/lisp/textmodes/bibtex-style.el
@@ -66,12 +66,12 @@
66;;;###autoload 66;;;###autoload
67(define-derived-mode bibtex-style-mode nil "BibStyle" 67(define-derived-mode bibtex-style-mode nil "BibStyle"
68 "Major mode for editing BibTeX style files." 68 "Major mode for editing BibTeX style files."
69 (set (make-local-variable 'comment-start) "%") 69 (setq-local comment-start "%")
70 (set (make-local-variable 'outline-regexp) "^[a-z]") 70 (setq-local outline-regexp "^[a-z]")
71 (set (make-local-variable 'imenu-generic-expression) 71 (setq-local imenu-generic-expression
72 '((nil "\\<\\(FUNCTION\\|MACRO\\)\\s-+{\\([^}\n]+\\)}" 2))) 72 '((nil "\\<\\(FUNCTION\\|MACRO\\)\\s-+{\\([^}\n]+\\)}" 2)))
73 (set (make-local-variable 'indent-line-function) 'bibtex-style-indent-line) 73 (setq-local indent-line-function 'bibtex-style-indent-line)
74 (set (make-local-variable 'parse-sexp-ignore-comments) t) 74 (setq-local parse-sexp-ignore-comments t)
75 (setq font-lock-defaults 75 (setq font-lock-defaults
76 '(bibtex-style-font-lock-keywords nil t 76 '(bibtex-style-font-lock-keywords nil t
77 ((?. . "w"))))) 77 ((?. . "w")))))