[PATCH] Add dir-locals style variables for C++ and Elisp code.

Austin Clements amdragon at mit.edu
Tue Jun 7 00:00:23 PDT 2011


On Tue, Jun 7, 2011 at 2:38 AM, Dima Kogan <notmuch at dima.secretsauce.net> wrote:
>> On Tue,  7 Jun 2011 01:20:25 -0400
>> Austin Clements <amdragon at MIT.EDU> wrote:
>>
>> Also, slightly reformat dir-locals.el so that the settings align and
>> to make it friendlier for future additions.
>
> Should we also add:
>
> (tab-always-indent . nil)

tab-always-indent is a user-interface preference and definitely
shouldn't be overridden by .dir-locals.  (Personally, I would go crazy
if I had tab-always-indent set to nil.)

> (indent-tabs-mode  . t)

I'll add this for shell-mode.  As I pointed out in my reply to Dmitry,
this shouldn't be set globally.  Are there any other specific modes it
should be set for?

> Otherwise the setups of people who normally use spaces will still
> insert spaces when 'tab' is depressed.


More information about the notmuch mailing list