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

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

Date: Tue, 7 Jun 2011 03:00:23 -0400

To: Dima Kogan

Cc: notmuch@notmuchmail.org

From: Austin Clements


On Tue, Jun 7, 2011 at 2:38 AM, Dima Kogan <notmuch@dima.secretsauce.net> wrote:
>> On Tue,  7 Jun 2011 01:20:25 -0400
>> Austin Clements <amdragon@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.

Thread: