From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alain Muls Newsgroups: gmane.emacs.help Subject: Re: Reftex local variables Date: Fri, 31 Jul 2009 10:50:18 +0200 Message-ID: <4A72B04A.4040109@telenet.be> References: <4a72334a.a953f10a.5812.ffffc035SMTPIN_ADDED@mx.google.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1249030288 1885 80.91.229.12 (31 Jul 2009 08:51:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 08:51:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 31 10:51:21 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 1MWnph-0004io-7E for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 10:51:21 +0200 Original-Received: from localhost ([127.0.0.1]:55897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWnpg-00062u-I9 for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 04:51:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWnom-0005hr-W6 for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 04:50:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWnoh-0005g5-Ee for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 04:50:23 -0400 Original-Received: from [199.232.76.173] (port=44680 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWnoh-0005g2-Bf for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 04:50:19 -0400 Original-Received: from juliette.telenet-ops.be ([195.130.137.74]:49068) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWnog-00070X-Ix for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 04:50:19 -0400 Original-Received: from [192.168.134.102] ([84.197.185.220]) by juliette.telenet-ops.be with bizsmtp id NYqG1c0014lkG9w06YqG62; Fri, 31 Jul 2009 10:50:16 +0200 User-Agent: Thunderbird 2.0.0.22 (X11/20090608) In-Reply-To: <4a72334a.a953f10a.5812.ffffc035SMTPIN_ADDED@mx.google.com> X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.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@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66559 Archived-At: 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 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 -----------------------------------------------------------------