From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Wu Newsgroups: gmane.emacs.help Subject: Re: automating language environment settings Date: 04 Sep 2002 21:58:44 +0800 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <86k7m1svor.fsf@yy-sis-yy.2662-D1H> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031148270 15253 127.0.0.1 (4 Sep 2002 14:04:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 14:04:30 +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 17malg-0003xc-00 for ; Wed, 04 Sep 2002 16:04:28 +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 17manF-0006Oo-00; Wed, 04 Sep 2002 10:06:05 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!61.170.159.66!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 61.170.159.66 Original-X-Trace: fu-berlin.de 1031147932 58401337 61.170.159.66 (16 [117651]) X-Face: &g,TR^}]UCSFpSX^vN.tR,Pj}|+s$hHh(;j/-YRb@_b^#Y$d3_;C{w]m$b-XO 2>dGqZp{8;:giI-QT+Xc]/DL4n&ibdaINBaIRtUOo2^paDTT/7ybIQ8CPqH$@Y+1u,V= AX~zZ9aMg<&r:I3&*v%^,NV416Ue8kCRt>?S>`NWtq,D%$mzghS{jo.6w[iFhrgR|6&4 0UlnVv+\!/Z#]}+47DJ)u|3iz'+g,7tnF?W+"r%s{ith5{',"xd|{JO= User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: nntp.stanford.edu gnu.emacs.help:104472 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:1034 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1034 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; if everything setup properly, emacs > should be able to apply all necessary settings upon opening > document. However, while everything else works fine, emacs seems to be > unable to change language environment using above procedure. Any > suggestion here? I use Chinese in Emacs. (set-language-environment "Chinese-GB") -- Powered by FreeBSD!