From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: automating language environment settings Date: Wed, 04 Sep 2002 20:43:11 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031165675 12975 127.0.0.1 (4 Sep 2002 18:54:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 18:54:35 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mfIQ-0003N7-00 for ; Wed, 04 Sep 2002 20:54:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mfJu-00078c-00; Wed, 04 Sep 2002 14:56:06 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!feed.news.nacamar.de!news.f.de.plusline.net!news-fra1.dfn.de!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1041 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1041 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: