diff options
author | Chong Yidong <cyd@gnu.org> | 2012-12-01 12:09:55 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-12-01 12:09:55 +0800 |
commit | 92eadba57fe86a49d67a7e3d797e3180ca0f6ae7 (patch) | |
tree | 0b6588412e5b894cd2ee09e08fda5e52201d5ba9 /lisp/progmodes/autoconf.el | |
parent | 75b4f59c279cbab4ad6a056b39f876b9a7518267 (diff) | |
download | emacs-92eadba57fe86a49d67a7e3d797e3180ca0f6ae7.tar.gz |
Convert several major modes to setq-local.
* emacs-lisp/lisp-mode.el (lisp-mode-variables, lisp-mode):
* progmodes/autoconf.el (autoconf-mode):
* progmodes/js.el (js-mode):
* progmodes/make-mode.el (makefile-mode, makefile-makepp-mode)
(makefile-bsdmake-mode, makefile-imake-mode, makefile-browse):
* progmodes/perl-mode.el (perl-mode):
* progmodes/sh-script.el (sh-mode, sh-set-shell):
* textmodes/css-mode.el (css-mode):
* textmodes/sgml-mode.el (html-mode, sgml-mode)
(sgml-tags-invisible, sgml-guess-indent):
* textmodes/tex-mode.el (tex-common-initialization)
(latex-complete-bibtex-keys, tex-shell, tex-main-file)
(doctex-mode, plain-tex-mode, latex-mode):
* textmodes/texinfo.el (texinfo-mode): Use setq-local.
Diffstat (limited to 'lisp/progmodes/autoconf.el')
-rw-r--r-- | lisp/progmodes/autoconf.el | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/lisp/progmodes/autoconf.el b/lisp/progmodes/autoconf.el index ac3a7282952..5deb60f9e41 100644 --- a/lisp/progmodes/autoconf.el +++ b/lisp/progmodes/autoconf.el @@ -78,22 +78,19 @@ searching backwards at another AC_... command." ;;;###autoload (define-derived-mode autoconf-mode prog-mode "Autoconf" "Major mode for editing Autoconf configure.ac files." - (set (make-local-variable 'parens-require-spaces) nil) ; for M4 arg lists - (set (make-local-variable 'defun-prompt-regexp) - "^[ \t]*A[CM]_\\(\\sw\\|\\s_\\)+") - (set (make-local-variable 'comment-start) "dnl ") - (set (make-local-variable 'comment-start-skip) - "\\(?:\\(\\W\\|\\`\\)dnl\\|#\\) +") - (set (make-local-variable 'syntax-propertize-function) - (syntax-propertize-rules ("\\<dnl\\>" (0 "<")))) - (set (make-local-variable 'font-lock-defaults) - `(autoconf-font-lock-keywords nil nil (("_" . "w")))) - (set (make-local-variable 'imenu-generic-expression) - autoconf-imenu-generic-expression) - (set (make-local-variable 'imenu-syntax-alist) '(("_" . "w"))) - (set (make-local-variable 'indent-line-function) #'indent-relative) - (set (make-local-variable 'add-log-current-defun-function) - #'autoconf-current-defun-function)) + (setq-local parens-require-spaces nil) ; for M4 arg lists + (setq-local defun-prompt-regexp "^[ \t]*A[CM]_\\(\\sw\\|\\s_\\)+") + (setq-local comment-start "dnl ") + (setq-local comment-start-skip "\\(?:\\(\\W\\|\\`\\)dnl\\|#\\) +") + (setq-local syntax-propertize-function + (syntax-propertize-rules ("\\<dnl\\>" (0 "<")))) + (setq-local font-lock-defaults + `(autoconf-font-lock-keywords nil nil (("_" . "w")))) + (setq-local imenu-generic-expression autoconf-imenu-generic-expression) + (setq-local imenu-syntax-alist '(("_" . "w"))) + (setq-local indent-line-function #'indent-relative) + (setq-local add-log-current-defun-function + #'autoconf-current-defun-function)) (provide 'autoconf-mode) (provide 'autoconf) |