all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Stefan Kangas <stefan@marxist.se>
Cc: 37878@debbugs.gnu.org
Subject: bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el"
Date: Thu, 24 Oct 2019 00:19:09 +0300	[thread overview]
Message-ID: <874kzzdusy.fsf@mail.linkov.net> (raw)
In-Reply-To: <CADwFkmmVhD6tk0M0iTzAiq9PwNAp2nLs1MjQmhvT0tnDs-rtNQ@mail.gmail.com> (Stefan Kangas's message of "Wed, 23 Oct 2019 01:04:15 +0200")

> Steps to reproduce:
> 0. emacs -Q
> 1. M-x auto-insert-mode
> 2. C-x C-f .dir-locals.el RET
>
> Result: The entire Emacs standard header gets inserted into the
> buffer, complete with author, copyright notice, provide-statement,
> etc.
> Expected result: Either don't insert anything or use a custom skeleton.
>
> Please find attached a proposed patch, which adds a skeleton for
> "dir-locals.el" to auto-insert-alist.  I believe it would make it
> easier for especially beginning Emacs users to use ".dir-locals.el".
> (Open the file, type M-x auto-insert, and voilá.)
>
> Any comments?

Good addition for someone who doesn't use add-dir-local-variable
that inserts this header.

BTW, please also add the same two lines to the header of
.dir-locals.el in Emacs repository.





  reply	other threads:[~2019-10-23 21:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-22 23:04 bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el" Stefan Kangas
2019-10-23 21:19 ` Juri Linkov [this message]
2019-11-02  3:30   ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kzzdusy.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=37878@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.