From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Re: Reftex local variables
Date: Thu, 30 Jul 2009 21:14:56 +0200 [thread overview]
Message-ID: <87vdlakmof.fsf@mundaneum.com> (raw)
In-Reply-To: mailman.3503.1248972751.2239.help-gnu-emacs@gnu.org
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
next parent reply other threads:[~2009-07-30 19:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3503.1248972751.2239.help-gnu-emacs@gnu.org>
2009-07-30 19:14 ` Sébastien Vauban [this message]
[not found] <4a72334a.a953f10a.5812.ffffc035SMTPIN_ADDED@mx.google.com>
2009-07-31 8:50 ` Reftex local variables Alain Muls
2009-07-31 9:19 ` Peter Dyballa
2009-07-30 16:52 Alain Muls
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vdlakmof.fsf@mundaneum.com \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).