help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to rebind keys "C-j" to join-line


From: Dieter Wilhelm
Subject: Re: How to rebind keys "C-j" to join-line
Date: Mon, 06 Aug 2007 23:00:25 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"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




reply via email to

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