From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: org-speed-commands and `org-beginning-of-line-tip' Date: Fri, 02 Aug 2013 08:57:37 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V59JF-0004R5-Fg for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 02:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V59J7-0004Pb-7i for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 02:57:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:52372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V59J6-0004PG-VL for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 02:57:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V59J5-0002Uc-BX for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 08:57:47 +0200 Received: from 212.34.176.74 ([212.34.176.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Aug 2013 08:57:47 +0200 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Aug 2013 08:57:47 +0200 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am 8/1/2013 9:18 AM, schrieb Oleh: > Hi all, > > I've come to rely on org-speed-commands quite a lot, > and I wanted to share this tip with other people, who use them: > > (define-key org-mode-map (kbd "C-a") > (lambda()(interactive) > (if (looking-at "^[^*]") > (re-search-backward "^*") > (org-beginning-of-line)))) > > Basically, an additional C-a when already at the beginning of line takes you to > the previous heading, where speed commands are possible. > > Since the normal C-a would do nothing in this case, it's a straight upgrade. > > regards, > Oleh > > Hi, nice idea, thanks. Rainer