[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el"
From: |
Stefan Kangas |
Subject: |
bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el" |
Date: |
Sat, 02 Nov 2019 04:30:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
close 37878 27.1
thanks
Juri Linkov <juri@linkov.net> writes:
>> 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.
Thanks for the review. Now pushed to master as commit 6c82aafcc0.
> BTW, please also add the same two lines to the header of
> .dir-locals.el in Emacs repository.
Good idea. I did that in commit 7cde03484.
Best regards,
Stefan Kangas
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el",
Stefan Kangas <=