]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/files.el (auto-mode-alist): Add more reasonably lisp-data files
authorJoão Távora <joaotavora@gmail.com>
Sat, 18 Apr 2020 21:57:03 +0000 (22:57 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 18 Apr 2020 22:04:26 +0000 (23:04 +0100)
lisp/files.el

index f2f3eee965eb78284fa58df4a5bd1b028a720232..56d4679ad7dc7c41677ae594575ac4f95ca890db 100644 (file)
@@ -2657,9 +2657,13 @@ since only a single case-insensitive search through the alist is made."
      ("\\.ltx\\'" . latex-mode)
      ("\\.dtx\\'" . doctex-mode)
      ("\\.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\\(-2\\)?.el" . lisp-data-mode)
+     ;; .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)
+     ("eww-bookmarks\\'" . lisp-data-mode)
+     ("tramp\\'" . lisp-data-mode)
+     ("places\\'" . lisp-data-mode)
+     ("\\.emacs-places\\'" . lisp-data-mode)
      ("\\.el\\'" . emacs-lisp-mode)
      ("Project\\.ede\\'" . emacs-lisp-mode)
      ("\\.\\(scm\\|stk\\|ss\\|sch\\)\\'" . scheme-mode)