Hi
Thanks for your replay, I still can't figure out why yet, both
global-set-key and local-set-key can't rebind the C-j keys to
join-line, only local-set-key works by issueing C-x C-e after Emacs
started.
I guess I need to find the last setup's hook.
Best Regards
Alex Wei
Sierra Atlantic
----- Original Message -----
Sent: Tuesday, August 07, 2007 5:00
AM
Subject: Re: How to rebind keys "C-j" to
join-line
"Alex Wei" <swei@arrayinc.com> writes:
>
Thanks H. Dieter Wilhelm
>
> I don't need
the original C-j keybinding, the "M-^" needs to press 3 keys at
I see,
(I, personally, count M+SHIFT as one key, pressed at the same time
;-)
> same time, so I want to rebind the C-j to join-line. I am just
wondering how to
> rebind the key or how can I find the
hook.
>
> After opening the Emacs, I type
(local-set-key (kbd "C-j") 'join-line) and
> then Cx Ce, It
works!!
Have you tried (global-set-key)? Maybe local-set-key
works only in
the *scratch* buffer at start-up? Sorry I'm not
sure.
--
Best wishes
H. Dieter Wilhelm
Darmstadt,
Germany