[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indent-tabs-mode in dir-locals
From: |
Juri Linkov |
Subject: |
Re: indent-tabs-mode in dir-locals |
Date: |
Fri, 09 Jan 2009 00:51:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
>>> I had believed the unwritten rule till now was "respect whatever the
>>> file currently uses" (which there should be a setting for; but that's
>>> a wishlist item).
>>
>> The problem is that this rule is still unwritten ;)
>
> I already had a local hack based on a mode-hook. Now it is broken
> thanks to dir-locals over-riding it. Anyway, I've just edited my local
> copy of dir-locals (making it kind of pointless).
Some modes set it explicitly to nil (e.g. texinfo-mode). So the global
unconditional indent-tabs-mode in .dir-locals.el currently breaks these
modes, because mode settings are applied before file-local settings.
Maybe we should set (indent-tabs-mode . t) only for c-mode and
emacs-lisp-mode?
--
Juri Linkov
http://www.jurta.org/emacs/