help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automating language environment settings


From: Jesper Harder
Subject: Re: automating language environment settings
Date: Wed, 04 Sep 2002 20:43:11 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-redhat-linux-gnu)

cgorac@yahoo.com (Crni Gorac) writes:

> From time to time, I'm using emacs to edit documents written using ISO
> 8859-2 charset. Thus, I have first to set language environment to
> "Latin-2", then to open text file and finally to select
> "latin-2-prefix" as input method. So I was thinking about automating
> above process by creating corresponding emacs mode and then to
> reference this mode from first line of related documents;

Hmm, you could set the coding and input method using local variables in
the file.  Like this:


-*- coding: latin-2; -*-

Foo bar

Local Variables:
eval: (set-input-method 'latin-2-prefix)
End:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]