[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using directory local variables in mode hooks
From: |
Stephen Leake |
Subject: |
Re: using directory local variables in mode hooks |
Date: |
Sat, 16 Aug 2014 18:04:09 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Sam Steingold <address@hidden> writes:
> I set `python-shell-extra-pythonpaths' in .dir-locals.el and I want to use
> its value to set `compile-command' in `python-mode-hook'.
> Alas, it appears that `python-mode-hook' is run _before_ .dir-locals.el
> is processed.
I had a similar problem with file local variables in Ada mode; I moved
some of the mode processing into buffer-local hack-local-variables-hook,
which is then set in ada-mode.
--
-- Stephe