From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias MEULIEN Newsgroups: gmane.emacs.help Subject: Re: automating language environment settings Date: 06 Sep 2002 16:39:32 +0200 Organization: Dans quel but ? 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 1031323473 9466 127.0.0.1 (6 Sep 2002 14:44:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2002 14:44:33 +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 17nKLW-0002S9-00 for ; Fri, 06 Sep 2002 16:44:30 +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 17nKNA-0000Xw-00; Fri, 06 Sep 2002 10:46:12 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!proxad.net!proxad.net!freenix!uvsq.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: fermat.math.uvsq.fr Original-X-Trace: io.uvsq.fr 1031323172 94458 193.51.32.1 (6 Sep 2002 14:39:32 GMT) Original-X-Complaints-To: Newsmaster@uvsq.fr Original-NNTP-Posting-Date: Fri, 6 Sep 2002 14:39:32 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: nntp.stanford.edu gnu.emacs.help:104545 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: 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:1104 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1104 cgorac@yahoo.com (Crni Gorac) wrote: > (...) This is exactly what I have to avoid. I know about all of > above mentionned but I'd like not to have to type `C-x RET l' > sequence each time when I open Latin-2 encoded file in order to be > able to edit it. I'd like to have files let know emacs to change > language environment to Latin-2 each time when opened. The following does what you want ? (add-hook 'find-file-hooks '(lambda () (if (equal buffer-file-coding-system 'iso-latin-2) (set-language-environment "Latin-2")))) -- Matthias