[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add a separate mode for .dir-locals.el

From: Juri Linkov
Subject: Re: Add a separate mode for .dir-locals.el
Date: Sun, 20 Oct 2019 18:40:57 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

> But cookie generation would only be for very tight cases, I think, if
> any at all.  Because for files whole filenames and/or standard locations
> we know, such as dir-locals.el, bookmarks, ido-last, recentf,
> tramp-something, etc. we can just leverage the existing auto-mode-alist
> and magic-mode-alist.

Why are we talking about cluttering up auto-mode-alist with odd filenames?
There files are generated, so it's easy to add to them a cookie like:

  ;; -*- mode: emacs-lisp-data -*-

Actually ~/.emacs.d/tramp already has ;; -*- emacs-lisp -*-
But no other files.  We need to add the same cookie to

~/.emacs.d/places       - Emacs Lisp data
~/.emacs.d/recentf      - Emacs Lisp data
~/.emacs.d/eudc-options - Emacs Lisp code

and to all other files in ~/.emacs.d/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]