all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: How to make emacs switch input method automatically ?
@ 2009-08-06  5:49 waterloo
  2009-08-06  6:13 ` Andy Stewart
  0 siblings, 1 reply; 4+ messages in thread
From: waterloo @ 2009-08-06  5:49 UTC (permalink / raw)
  To: help-gnu-emacs, politza

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

Thanks very much !

Now how to simulate `shift' key in elisp just like I stroke it ?

How to know the current input state ?

Below is my thought :
I use scim .  When I input chinese , It  use `space' to choose the first
character after I input `chinese pinyin'.
So if we simulate `k ' (k and a space) , when the character before point is
not `k '  I can know the current state is chinese. (This relate to character
code problem)

Is there any other better method?

Thanks again.

[-- Attachment #2: Type: text/html, Size: 548 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <mailman.3938.1249474526.2239.help-gnu-emacs@gnu.org>]
* How to make emacs switch input method automatically ?
@ 2009-08-05 12:15 waterloo
  0 siblings, 0 replies; 4+ messages in thread
From: waterloo @ 2009-08-05 12:15 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 579 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-06  6:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06  5:49 How to make emacs switch input method automatically ? waterloo
2009-08-06  6:13 ` Andy Stewart
     [not found] <mailman.3938.1249474526.2239.help-gnu-emacs@gnu.org>
2009-08-05 18:24 ` A.Politz
  -- strict thread matches above, loose matches on Subject: below --
2009-08-05 12:15 waterloo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.