summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-08-25 08:11:58 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-08-25 08:11:58 +0200
commit9459c4c17c3338298e88a0af4be1798674bdb6ef (patch)
treebd07217371bff8e60f56c5a9970e74e2ab9e400e /lisp/files.el
parent16cae184c13f03515f1883555f4e22a541b0cc32 (diff)
downloademacs-9459c4c17c3338298e88a0af4be1798674bdb6ef.tar.gz
Use `autoconf-mode' for Autoconf .m4 files
* lisp/files.el (auto-mode-alist): Use `autoconf-mode' (instead of `m4-mode') for acinclude.m4/aclocal.m4/acsite.m4 files (bug#37133).
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index f76635017d5..2a84c2c48f5 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2719,6 +2719,8 @@ since only a single case-insensitive search through the alist is made."
("\\.bib\\'" . bibtex-mode)
("\\.bst\\'" . bibtex-style-mode)
("\\.sql\\'" . sql-mode)
+ ;; These .m4 files are Autoconf files.
+ ("\\(acinclude\\|aclocal\\|acsite\\)\\.m4\\'" . autoconf-mode)
("\\.m[4c]\\'" . m4-mode)
("\\.mf\\'" . metafont-mode)
("\\.mp\\'" . metapost-mode)