From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Update ispell-dictionary to text language Date: Wed, 13 Jan 2010 11:20:34 +0100 Message-ID: <873a2ai9vx.fsf@mundaneum.com> References: <87d41gkhjb.fsf@mundaneum.com> <87k4vod5f8.fsf@in-ulm.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Benjamin, Benjamin Andresen wrote: > S=C3=A9bastien Vauban writes: >> >> Here my proposal (and my very first self-written chunk of ELisp code) for >> switching to the right language for ispell, upon reading the contents of >> the meta-tag `LANGUAGE'. > > I think using File Variables are better for this. For no particular reason > except they are standardized and don't require any additional code in Org > Mode. > (info "(emacs)Specifying File Variables") > # -*- ispell-local-dictionary: "german" -*- I know them, even use them in directories (see `.dir-locals.el'), instead of files. --8<---------------cut here---------------start------------->8--- ((org-mode . ((ispell-local-dictionary . "american") (time-stamp-format . "%:y-%02m-%02d") (time-stamp-start . "^#\\+DATE: +") (time-stamp-end . "$")))) --8<---------------cut here---------------end--------------->8--- BUT there is a *language specification* in the Org template: --8<---------------cut here---------------start------------->8--- #+TITLE: Scorpios.org #+AUTHOR: Seb Vauban #+EMAIL: no-LMehjL4SQ+Y@public.gmane.org #+DATE: 2010-01-13 Wed #+DESCRIPTION:=20 #+KEYWORDS:=20 #+LANGUAGE: en --8<---------------cut here---------------end--------------->8--- ^^ AND it is *used by Org* (at least for the HTML export, and for LaTeX as wel= l I think -- or, in any case, it should use it). Thus, I try to avoid declaring which language is used in the buffer at two different spots, because we can change one and forget to change the other. Therefore, I would like to keep only one language declaration (the one of t= he Org template, in this case), and get Emacs follow it. Does this make sense? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode