[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

key binding - global

From: Guldo K
Subject: key binding - global
Date: Sat, 13 Dec 2003 17:42:47 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

I searched the NG with no luck.
I'm trying to achieve an init-keybinding.
I read the specific node of the manual,
but I cannot perform this.
I'd like to assign a key combo to this:
set-language-environment "Japanese"
set-input-method "japanese"

I tried this in my .emacs:
(global-set-key "\C-c\C-k" '(set-input-method "japanese"))
and even this:
(defun Jappo()
  (set-input-method "japanese")
  (set-language-environment "Japanese")
(global-set-key "\C-c\C-k" 'Jappo)

but none works.
Can you help me?

Thanks a lot,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]