[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/add-lisp-data-mode 18d9c0f 2/2: * lisp/files.el (auto-mode-alist
From: |
João Távora |
Subject: |
scratch/add-lisp-data-mode 18d9c0f 2/2: * lisp/files.el (auto-mode-alist): Handle .dir-locals-2.el. |
Date: |
Sat, 18 Apr 2020 07:59:53 -0400 (EDT) |
branch: scratch/add-lisp-data-mode
commit 18d9c0fa6846fb94323bf1ed3806a7864369ffd9
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
* lisp/files.el (auto-mode-alist): Handle .dir-locals-2.el.
---
lisp/files.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/files.el b/lisp/files.el
index a769d06..f2f3eee 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2659,7 +2659,7 @@ since only a single case-insensitive search through the
alist is made."
("\\.org\\'" . org-mode)
;; .dir-locals.el is not really elisp. Can't use the
;; `dir-locals-file' constant since that is defined below.
- (".dir-locals.el" . lisp-data-mode)
+ (".dir-locals\\(-2\\)?.el" . lisp-data-mode)
("\\.el\\'" . emacs-lisp-mode)
("Project\\.ede\\'" . emacs-lisp-mode)
("\\.\\(scm\\|stk\\|ss\\|sch\\)\\'" . scheme-mode)