unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alain Muls <alain.muls@telenet.be>
To: help-gnu-emacs@gnu.org
Subject: Re: Reftex local variables
Date: Fri, 31 Jul 2009 10:50:18 +0200	[thread overview]
Message-ID: <4A72B04A.4040109@telenet.be> (raw)
In-Reply-To: <4a72334a.a953f10a.5812.ffffc035SMTPIN_ADDED@mx.google.com>

On 31/07/09 help-gnu-emacs-request@gnu.org wrote:
> Message: 10 Date: Thu, 30 Jul 2009 21:14:56 +0200 From: S?bastien 
> Vauban <wxhgmqzgwmuf@spammotel.com> Subject: Re: Reftex local 
> variables To: help-gnu-emacs@gnu.org Message-ID: 
> <87vdlakmof.fsf@mundaneum.com> Content-Type: text/plain; 
> charset=utf-8 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.

Hi emacs,

When creating a nex latex file, emacs auto-inserts the 4 commands shown 
on top and asks which file is the master file. I want to add to this the 
2 lines for ispell and flyspell.


bye/Alain

> 
> 
> > > 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


-- 
-----------------------------------------------------------------
Alain Muls                                   alain.muls@rma.ac.be
Royal Military Academy                              +32.2.7426340
Department CISS                                 srt +32.2.7426476
Renaissance Avenue 30, B1000 Brussels
-----------------------------------------------------------------




       reply	other threads:[~2009-07-31  8:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4a72334a.a953f10a.5812.ffffc035SMTPIN_ADDED@mx.google.com>
2009-07-31  8:50 ` Alain Muls [this message]
2009-07-31  9:19   ` Reftex local variables Peter Dyballa
     [not found] <mailman.3503.1248972751.2239.help-gnu-emacs@gnu.org>
2009-07-30 19:14 ` Sébastien Vauban
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=4A72B04A.4040109@telenet.be \
    --to=alain.muls@telenet.be \
    --cc=help-gnu-emacs@gnu.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).