From: Stefan Monnier Date: Mon, 13 Jun 2022 12:58:09 +0000 (-0400) Subject: * files.el (auto-mode-alist): Add entry to `.eld` files X-Git-Tag: emacs-29.0.90~1910^2~43 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86f30c972bb421db1b8f83951ecfc15ad607fb03;p=emacs.git * files.el (auto-mode-alist): Add entry to `.eld` files --- 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)