]> git.eshelyaron.com Git - emacs.git/commitdiff
Prefer setq-local in bibtex-style.el
authorStefan Kangas <stefan@marxist.se>
Thu, 10 Dec 2020 08:44:25 +0000 (09:44 +0100)
committerStefan Kangas <stefan@marxist.se>
Thu, 10 Dec 2020 16:24:46 +0000 (17:24 +0100)
* lisp/textmodes/bibtex-style.el (bibtex-style-mode): Prefer
setq-local.

lisp/textmodes/bibtex-style.el

index 952b81621e91c4e1e24081b623b3e85ffd84e24b..41650eb43719f93cde0fb70cc7d73baeec45145b 100644 (file)
 ;;;###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")))))