From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alex Wei" Newsgroups: gmane.emacs.help Subject: Re: How to rebind keys "C-j" to join-line Date: Mon, 6 Aug 2007 10:17:04 +0800 Message-ID: References: <1EA8C5CAFEE34474B0BC8809A468377F@array8f42e753d> <87r6mkngx6.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0638480271==" X-Trace: sea.gmane.org 1186366686 22914 80.91.229.12 (6 Aug 2007 02:18:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2007 02:18:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Dieter Wilhelm" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 06 04:18:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IHsAM-00037C-LN for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2007 04:18:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHsAK-0006eD-My for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Aug 2007 22:17:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHsA3-0006e6-OS for help-gnu-emacs@gnu.org; Sun, 05 Aug 2007 22:17:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHs9z-0006dt-KQ for help-gnu-emacs@gnu.org; Sun, 05 Aug 2007 22:17:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHs9z-0006dq-De for help-gnu-emacs@gnu.org; Sun, 05 Aug 2007 22:17:31 -0400 Original-Received: from w98.arrayinc.com ([207.190.196.98] helo=barracuda.arrayinc.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IHs9u-0006Rd-Cz for help-gnu-emacs@gnu.org; Sun, 05 Aug 2007 22:17:30 -0400 X-ASG-Debug-ID: 1186366618-4074000a0000-2yy5ZX X-Barracuda-URL: http://172.22.0.241:8000/cgi-bin/mark.cgi X-Barracuda-Connect: unknown[59.37.5.20] X-Barracuda-Start-Time: 1186366618 Original-Received: from array8f42e753d (unknown [59.37.5.20]) by barracuda.arrayinc.com (Spam Firewall) with ESMTP id 80BC26A40; Sun, 5 Aug 2007 22:17:00 -0400 (EDT) X-ASG-Orig-Subj: Re: How to rebind keys "C-j" to join-line X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 12.0.1184 X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1184 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at arrayinc.com X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46343 Archived-At: This is a multi-part message in MIME format. --===============0638480271== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0030_01C7D812.EFD827C0" This is a multi-part message in MIME format. ------=_NextPart_000_0030_01C7D812.EFD827C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks H. Dieter Wilhelm I don't need the original C-j keybinding, the "M-^" needs to press 3 = keys at 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!! But it dosen't work at .emacs, can you help, I guess I need to find the = last setup's hook. Thanks Alex Wei ----- Original Message -----=20 From: Dieter Wilhelm=20 To: Alex Wei=20 Cc: help-gnu-emacs@gnu.org=20 Sent: Saturday, August 04, 2007 10:59 AM Subject: Re: How to rebind keys "C-j" to join-line "Alex Wei" writes: > I add the following lines into my .emacs file, but it dosen't work, = How can I > rebind the key "C-j" to join-line ? May I ask why the standard key-binding of join-line (M-^) is not sufficient for you? --=20 Best wishes H. Dieter Wilhelm Darmstadt, Germany ------=_NextPart_000_0030_01C7D812.EFD827C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks    H. Dieter Wilhelm
 
I don't need the original C-j keybinding, the "M-^" needs to press = 3 keys=20 at same time, so I want to rebind the C-j to join-line. I am just = wondering how=20 to rebind the key or how can I find the hook.
 
After opening the Emacs, I type  (local-set-key (kbd "C-j")=20 'join-line)  and then Cx Ce, It works!!
But it dosen't work at .emacs,  can you help, I guess I need = to find=20 the last setup's hook.
 
Thanks
 
Alex Wei
 
----- Original Message -----
From:=20 Dieter Wilhelm
Cc: help-gnu-emacs@gnu.org =
Sent: Saturday, August 04, 2007 = 10:59=20 AM
Subject: Re: How to rebind keys = "C-j" to=20 join-line

"Alex Wei" <swei@arrayinc.com> = writes:

>=20 I add the following lines into my .emacs file, but it dosen't work, = How can=20 I
> rebind the key "C-j" to join-line ?

May I ask why the = standard key-binding of join-line (M-^) is not
sufficient for=20 you?

--
    Best = wishes

    H.=20 Dieter Wilhelm
    Darmstadt,=20 Germany ------=_NextPart_000_0030_01C7D812.EFD827C0-- --===============0638480271== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0638480271==--