[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reftex local variables
From: |
Sébastien Vauban |
Subject: |
Re: Reftex local variables |
Date: |
Thu, 30 Jul 2009 21:14:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) |
Hi Alain,
Alain Muls wrote:
> Hi emacs,
>
> I want to change the insertion of local variables from
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
>
> to
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% eval: (ispell-change-dictionary "american")
> %%% eval: (flyspell-mode 1)
> %%% End:
>
> How do you do that?
I don't understand your question.
> Is it also possible to have the insertion ask for the dictionary to use?
Yes, if you eval such an interactive function, one that asks for a dictionary.
> And finally, how do I get rid of the "allow variables that are risky"
> question?
Put such a thing in your `.emacs' file:
--8<---------------cut here---------------start------------->8---
;; record safe values for some local variables
(setq safe-local-variable-values
'((TeX-master . t)
(flyspell-mode . t)
(ispell-dictionary . "francais")
(ispell-dictionary . "american")
(ispell-mode . t)))
--8<---------------cut here---------------end--------------->8---
Seb
--
Sébastien Vauban