Function: autoconf-mode

autoconf-mode is an autoloaded, interactive and byte-compiled function defined in autoconf.el.gz.

Signature

(autoconf-mode)

Documentation

Major mode for editing Autoconf configure.ac files.

In addition to any hooks its parent mode prog-mode might have run, this mode runs the hook autoconf-mode-hook, as the final or penultimate step during initialization.

Probably introduced at or before Emacs version 27.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/autoconf.el.gz
;;;###autoload
(define-derived-mode autoconf-mode prog-mode "Autoconf"
  "Major mode for editing Autoconf configure.ac files."
  (setq-local parens-require-spaces nil) ; for M4 arg lists
  ;; FIXME: Should indented macro calls really count as defuns?
  (setq-local defun-prompt-regexp (rx bol (* (in "\t ")) autoconf--macro))
  (setq-local open-paren-in-column-0-is-defun-start nil)
  (setq-local comment-start "dnl ")
  ;; We want to avoid matching "dnl" in other text.
  (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))
  (setq-local imenu-generic-expression autoconf-imenu-generic-expression)
  (setq-local indent-line-function #'indent-relative)
  (setq-local add-log-current-defun-function
	      #'autoconf-current-defun-function))