From 86f30c972bb421db1b8f83951ecfc15ad607fb03 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 13 Jun 2022 08:58:09 -0400 Subject: [PATCH] * files.el (auto-mode-alist): Add entry to `.eld` files --- etc/NEWS | 2 ++ lisp/files.el | 3 +++ 2 files changed, 5 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index 5df7713aeaa..9440baee6ad 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -294,6 +294,8 @@ startup. Previously, these functions ignored * Changes in Emacs 29.1 +** Files with the '.eld' extension are now opened in 'lisp-data-mode'. + +++ ** New command 'find-sibling-file'. This command jumps to a file considered a "sibling file", which is diff --git a/lisp/files.el b/lisp/files.el index eb1b90fc299..22fccb151cd 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2797,6 +2797,9 @@ since only a single case-insensitive search through the alist is made." ;; .dir-locals.el is not really Elisp. Could use the ;; `dir-locals-file' constant if it weren't defined below. ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode) + ("\\.eld\\'" . lisp-data-mode) + ;; FIXME: The lisp-data-mode files below should use the `.eld' extension + ;; (or a -*- mode cookie) so we don't need ad-hoc entries here. ("eww-bookmarks\\'" . lisp-data-mode) ("tramp\\'" . lisp-data-mode) ("/archive-contents\\'" . lisp-data-mode) -- 2.39.2