From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: waterloo Newsgroups: gmane.emacs.help Subject: How to make emacs switch input method automatically ? Date: Wed, 5 Aug 2009 20:15:19 +0800 Message-ID: <907065090908050515w1950e852i6ba1ab20bcef78cf@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=002215046cabe429fa047063f459 X-Trace: ger.gmane.org 1249474558 17876 80.91.229.12 (5 Aug 2009 12:15:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2009 12:15:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 05 14:15:51 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYfPI-0008Jh-BT for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Aug 2009 14:15:48 +0200 Original-Received: from localhost ([127.0.0.1]:50839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYfPH-0006O8-MB for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Aug 2009 08:15:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYfOv-0006NN-Oo for help-gnu-emacs@gnu.org; Wed, 05 Aug 2009 08:15:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYfOq-0006FQ-Ug for help-gnu-emacs@gnu.org; Wed, 05 Aug 2009 08:15:25 -0400 Original-Received: from [199.232.76.173] (port=37832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYfOq-0006F8-OD for help-gnu-emacs@gnu.org; Wed, 05 Aug 2009 08:15:20 -0400 Original-Received: from mail-yx0-f172.google.com ([209.85.210.172]:43287) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYfOq-0000c1-GP for help-gnu-emacs@gnu.org; Wed, 05 Aug 2009 08:15:20 -0400 Original-Received: by yxe2 with SMTP id 2so50592yxe.14 for ; Wed, 05 Aug 2009 05:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=7T0wCqjP6LHNDbMckf3PirhUaRZyGv/HZ5gXIhfxcdI=; b=BYhbpltvJeua+thPd12z7JPIIGWHA3f8V8PZsz3JlVfcqwbPoBCpG12mcyyA0uWSQ4 qTLkmfSo70t2OS1rwPEqWMk3Q44O5fzoCpvog4pskxwcYsP2jDK6bgdC/CNh5+z6UmOl E3C8Uvw58qa2LD/Y9qxmIcKn5yAOyRE2Oz1o4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vOAQUO84+UomfPqdiKp7fK2UTigmGYIPBbC56yMVE6pmHkjeLiAVL2W0aI9TBCdqte H4wTMlRkh2X3knpQzryPPVfIjwFA5sm7jjrrKFu9odpWlpdpm6DEL25W+DUcSZXsziET cyCfRPI1dW828ssmYertrDzaXCtpUPp+ePCCo= Original-Received: by 10.231.13.69 with SMTP id b5mr2666009iba.40.1249474519508; Wed, 05 Aug 2009 05:15:19 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66780 Archived-At: --002215046cabe429fa047063f459 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I use chinese to input normal text in latex . And in math mode we almost use english . I use `shift' to switch between chinese and english . So now I use shift too frequently , my shift key is not sensitive . How to make emacs switch automatically ? When in math mode , emacs switchs to english . When in normal text ,emacs switchs to chinese. Can here anyone give some instructions of doing this ? I know there is function `texmathp' in auctex which determines if point is inside latex mode . Thanks --002215046cabe429fa047063f459 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I use chinese to input normal text in latex .
And in math mode we almost= use english .

I use `shift' to switch between chinese and engli= sh .

So now I use shift too frequently , my shift key is not sensiti= ve .

How to make emacs switch=A0 automatically ?

When=A0 in math mode= ,=A0 emacs switchs to english .
When=A0 in normal text ,emacs switchs t= o chinese.

Can here anyone=A0 give some instructions of doing this = ?

I know there is function `texmathp' in auctex which determines if point= is inside latex mode .

Thanks
--002215046cabe429fa047063f459--