aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2022-06-13 08:58:09 -0400
committerStefan Monnier2022-06-13 08:58:09 -0400
commit86f30c972bb421db1b8f83951ecfc15ad607fb03 (patch)
tree2b1a867c03cdfbeaef77472f0eab9b566e0d99d2
parent0fdd37c7fbbd0880e569d41bb5ecb9a40f099b00 (diff)
downloademacs-86f30c972bb421db1b8f83951ecfc15ad607fb03.tar.gz
emacs-86f30c972bb421db1b8f83951ecfc15ad607fb03.zip
* files.el (auto-mode-alist): Add entry to `.eld` files
-rw-r--r--etc/NEWS2
-rw-r--r--lisp/files.el3
2 files changed, 5 insertions, 0 deletions
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
294 294
295* Changes in Emacs 29.1 295* Changes in Emacs 29.1
296 296
297** Files with the '.eld' extension are now opened in 'lisp-data-mode'.
298
297+++ 299+++
298** New command 'find-sibling-file'. 300** New command 'find-sibling-file'.
299This command jumps to a file considered a "sibling file", which is 301This 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."
2797 ;; .dir-locals.el is not really Elisp. Could use the 2797 ;; .dir-locals.el is not really Elisp. Could use the
2798 ;; `dir-locals-file' constant if it weren't defined below. 2798 ;; `dir-locals-file' constant if it weren't defined below.
2799 ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode) 2799 ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode)
2800 ("\\.eld\\'" . lisp-data-mode)
2801 ;; FIXME: The lisp-data-mode files below should use the `.eld' extension
2802 ;; (or a -*- mode cookie) so we don't need ad-hoc entries here.
2800 ("eww-bookmarks\\'" . lisp-data-mode) 2803 ("eww-bookmarks\\'" . lisp-data-mode)
2801 ("tramp\\'" . lisp-data-mode) 2804 ("tramp\\'" . lisp-data-mode)
2802 ("/archive-contents\\'" . lisp-data-mode) 2805 ("/archive-contents\\'" . lisp-data-mode)