From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: org-mode keybinding Date: Sat, 18 Aug 2012 18:08:22 +0200 Message-ID: <87k3wvwb2g.fsf@altern.org> References: <1345276538882-261738.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345365586 26909 80.91.229.3 (19 Aug 2012 08:39:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2012 08:39:46 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: drain Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 19 10:39:46 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T312u-0003aq-S1 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Aug 2012 10:39:44 +0200 Original-Received: from localhost ([::1]:39694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T30h8-0003Lk-CA for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Aug 2012 04:17:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T30gQ-0001aE-Ml for Help-gnu-emacs@gnu.org; Sun, 19 Aug 2012 04:16:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T30gP-0007uO-Qy for Help-gnu-emacs@gnu.org; Sun, 19 Aug 2012 04:16:30 -0400 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:33523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T30gP-0007tQ-LL for Help-gnu-emacs@gnu.org; Sun, 19 Aug 2012 04:16:29 -0400 Original-Received: by mail-wg0-f49.google.com with SMTP id ez12so3756975wgb.30 for ; Sun, 19 Aug 2012 01:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:date:references:user-agent :message-id:mime-version:content-type; bh=1tCtWLYuTYca94vFrq6rXgwTM3KneSGPdcixiDfA2Rs=; b=fqixD7x2xPpF2OMlTtd3rdRlF6AFCNKDFMxEXUENCubufAk3QEzvYb+HNmgdxISxjx FtfCZoGYoAiofGPiiFp93QS2Dy6+2QNC3s1CfosVhhys9YsOryaaJPsPFrmEumPalo61 jEwoFP8cXz4dyPgFsmnrnuHYGkwHDR6AuGqhyzbiqvVD995do5BKefE1SGr9+CMFITU4 eLZ7pRIA11PHOI50rinnsX0LxFmQW8RA4v+M44aNBw8nbUobx25EA7p5Jj6ca3+5pRAT rxA8EwYwIdCcpPQFmrK7nUqlGq37EaqWWPCgy2uz9VMafjUOwBdm5PpAtIhSLDkr89MG tn+A== Original-Received: by 10.216.132.25 with SMTP id n25mr5047461wei.25.1345364189332; Sun, 19 Aug 2012 01:16:29 -0700 (PDT) Original-Received: from myhost.localdomain (10.14.113.78.rev.sfr.net. [78.113.14.10]) by mx.google.com with ESMTPS id o2sm30808100wiz.11.2012.08.19.01.16.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 19 Aug 2012 01:16:28 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id 1C36E8837; Sun, 19 Aug 2012 10:16:56 +0200 (CEST) In-Reply-To: <1345276538882-261738.post@n5.nabble.com> (drain's message of "Sat, 18 Aug 2012 00:55:38 -0700 (PDT)") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86420 Archived-At: drain writes: > Tried to remap org-beginning-of-line to C-q, neither of these two methods > worked: > > (1) > > (add-hook 'org-mode-hook > (lambda () > (local-set-key "\C-q" 'org-beginning-of-line))) > > (2) > > (add-hook 'org-mode-hook > '(lambda () > (define-key org-mode-map "\C-q" 'org-beginning-of-line))) Use `org-defkey' and the org-mode map: (org-defkey org-mode-map "\C-q" 'org-beginning-of-line) HTH, -- Bastien