From 904c327ae89399321ed13bc8ca59d5b4e7c007cf Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 10 Dec 2020 09:44:25 +0100 Subject: [PATCH] Prefer setq-local in bibtex-style.el * lisp/textmodes/bibtex-style.el (bibtex-style-mode): Prefer setq-local. --- lisp/textmodes/bibtex-style.el | 12 ++++++------ 1 file 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 @@ ;;;###autoload (define-derived-mode bibtex-style-mode nil "BibStyle" "Major mode for editing BibTeX style files." - (set (make-local-variable 'comment-start) "%") - (set (make-local-variable 'outline-regexp) "^[a-z]") - (set (make-local-variable 'imenu-generic-expression) - '((nil "\\<\\(FUNCTION\\|MACRO\\)\\s-+{\\([^}\n]+\\)}" 2))) - (set (make-local-variable 'indent-line-function) 'bibtex-style-indent-line) - (set (make-local-variable 'parse-sexp-ignore-comments) t) + (setq-local comment-start "%") + (setq-local outline-regexp "^[a-z]") + (setq-local imenu-generic-expression + '((nil "\\<\\(FUNCTION\\|MACRO\\)\\s-+{\\([^}\n]+\\)}" 2))) + (setq-local indent-line-function 'bibtex-style-indent-line) + (setq-local parse-sexp-ignore-comments t) (setq font-lock-defaults '(bibtex-style-font-lock-keywords nil t ((?. . "w"))))) -- 2.39.2