[Top][All Lists]

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

Re: key binding - global

From: Kin Cho
Subject: Re: key binding - global
Date: 13 Dec 2003 10:14:38 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Guldo K <address@hidden> writes:

> Hello.
> 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"))

(global-set-key "\C-c\C-k" (lambda () (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)

(defun Jappo() (interactive)
 (set-input-method "japanese") (set-language-environment "Japanese"))

> but none works.
> Can you help me?
> Thanks a lot,
> *Guldo*

reply via email to

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