From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Re: Reftex local variables Date: Thu, 30 Jul 2009 21:14:56 +0200 Organization: Sebastien Vauban Message-ID: <87vdlakmof.fsf@mundaneum.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248998123 31468 80.91.229.12 (30 Jul 2009 23:55:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2009 23:55:23 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Jul 31 01:55:17 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWfSs-0003sA-Cg for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 01:55:14 +0200 Original-Received: from localhost ([127.0.0.1]:53221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWfSp-0005hI-Ek for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 19:55:11 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-X-Trace: news.eternal-september.org U2FsdGVkX1/cMlQm4LQNdSWWLis1MGDoIDA181KXeYyKeEg22NLzZOPbya1eE2BKOPNspqTuthyClNWRAHqCADW54fJHVy3keGoXJrMXJUf6CIsaMoTnULqTFiH/0TXvGp5+WKW6cjL9rcps2SJkbQ== Original-X-Complaints-To: abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org Original-NNTP-Posting-Date: Thu, 30 Jul 2009 19:22:13 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19sExSjBegdIIm7kQTjm6skVgey7bMwGMg= X-Archive: encrypt Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMODhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QHw/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnYDQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ70hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloem/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= X-Www-site: Under construction... Cancel-Lock: sha1:BNInlzHfJ6dW8KCIcFewELrpy5I= sha1:Bh5ZIaq4urs0ooq1t8iXTF7VrW0= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:171358 X-Mailman-Approved-At: Thu, 30 Jul 2009 19:53:54 -0400 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:66545 Archived-At: 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 dictiona= ry. > 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 --=20 S=C3=A9bastien=C2=A0Vauban