From mboxrd@z Thu Jan 1 00:00:00 1970 From: Friedrich Delgado Friedrichs Subject: Re: Speed commands (was: Release 6.33) Date: Fri, 20 Nov 2009 17:29:15 +0100 Message-ID: <20091120162915.GB5311@taupan.ath.cx> References: <87aayqfh8a.wl%ucecesf@ucl.ac.uk> <8D1991FE-E04A-41DF-8919-C72E4EA9AFF1@uva.nl> <4AFDB0AB.9040607@cs.tu-berlin.de> <78C217F4-D3EA-46BA-A237-CA0E54216D5E@uva.nl> <20091120143546.GA1227@taupan.ath.cx> <95E34029-6EF2-4E77-B303-37676E5FA79F@gmail.com> Reply-To: friedel@nomaden.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBWMO-0001qS-6K for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 11:29:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBWMI-0001oQ-Oq for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 11:29:23 -0500 Received: from [199.232.76.173] (port=45983 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBWMI-0001oN-LB for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 11:29:18 -0500 Received: from dudelab.org ([212.12.33.202]:12338 helo=mail.dudelab.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NBWMI-0003qI-4Y for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 11:29:18 -0500 Received: from abrasax.taupan.ath.cx (p5DE8A485.dip.t-dialin.net [93.232.164.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Friedrich Delgado Friedrichs", Issuer "User CA" (verified OK)) by mail.dudelab.org (Postfix) with ESMTP id 47EC7228148 for ; Fri, 20 Nov 2009 17:29:50 +0100 (CET) Content-Disposition: inline In-Reply-To: <95E34029-6EF2-4E77-B303-37676E5FA79F@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik schrieb: > >(("y" . (progn > > (delete-other-windows) > > (recenter-top-bottom 0))) > >("A" . (if (y-or-n-p "Archive this subtree or entry? ") > > (call-interactively org-archive-subtree) > > (error "Abort"))) > > ("," . org-cycle-agenda-files)) There's a quote missing before org-archive-subtree here, btw. > The function is there, but the autoloads need to be up to date. > make autoloads > should do the trick, certainly in the latest git release. Oops, I usually just do 'make' after git pull. Is autoloads not implied in the default target? > >How about having an alternative keymap with vi-like moving keys? I > >hardly ever use the C-b, C-f, C-n, C-p in my regular emacs work > >(mostly cursor keys) and so I'm actually more comfortable with using > >vi movement. > > I don't understand what you are proposing here. k for up, j for down, h for left and l for right. So I guess k would be previous-heading, j next heading, and h and l for the previous/next sibling on the same level. So I guess I have: j (org-speed-move-safe (quote outline-next-visible-heading)) k (org-speed-move-safe (quote outline-previous-visible-heading)) l (org-speed-move-safe (quote org-forward-same-level)) h (org-speed-move-safe (quote org-backward-same-level)) In the vi-movement map. And somebody who is more proficient with vi than I am probably can come up with some natural additions. This is just a thought, I wanted to see if anyone would bite ;) > This is nice, but I guess you want to stay in fast-key space. > So > > ("," . (progn (org-cycle-agenda-files) > (or (and (bolp) (org-on-heading-p)) > (outline-next-visible-heading 1)))) ---Zitatende--- Ah, much better! Thanks! ;) -- Friedrich Delgado Friedrichs TauPan on Ircnet and Freenode ;)