[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there any possibility recursively by dir propagate Emacs settings
From: |
Eli Zaretskii |
Subject: |
Re: Is there any possibility recursively by dir propagate Emacs settings like .dir-locals.el per dir? |
Date: |
Wed, 29 Dec 2010 06:48:03 -0500 |
> From: Oleksandr Gavenko <gavenkoa@gmail.com>
> Date: Wed, 29 Dec 2010 00:30:36 +0200
>
> I) 1. visit to file
> 2. check for ./.dir-locals.el
> 3. if ./.dir-locals.el not found, check for ../.dir-locals.el
> 4. if ../.dir-locals.el not found, check for ../../.dir-locals.el
> ...
>
> or
>
> II) 1. visit to file
> 2. check for ./.dir-locals.el
> 3. check for ../.dir-locals.el
> 4. check for ../../.dir-locals.el
> ...
>
> I like II) variant.
Emacs uses I). See locate-dominating-file.
> If I) right how deep .dir-locals.el can include upper .dir-locals.el?
I don't think you can.