emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use an external dir-locals file?


From: Stefan Monnier
Subject: Re: how to use an external dir-locals file?
Date: Mon, 25 Mar 2013 20:46:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> I imagined simply doing a dynamic let-bind around the call initially,
> but if it's going to be a feature, then I could make it easier to
> associate a dir-locals override with a file (matched by name).

Hmm... I think I misunderstood the intended usage.
Could you give more details about your use-case?
E.g. why not do something like

   (let ((tmp-foo-setting (lambda () (setq-local foo-indent 5))))
     (unwind-protect
         (progn
           (add-hook 'foo-mode-hook tmp-foo-setting)
           <doit>)
       (remove-hook 'foo-mode-hook tmp-foo-setting)))


-- Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]