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 15:35:46 +0100 Message-ID: <20091120143546.GA1227@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> 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 1NBUaY-00089B-PT for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:35:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBUaV-000844-32 for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:35:54 -0500 Received: from [199.232.76.173] (port=33308 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBUaU-00083Y-Nr for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:35:50 -0500 Received: from dudelab.org ([212.12.33.202]:12747 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 1NBUaU-0008Eu-5A for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:35:50 -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 8CA1C228148 for ; Fri, 20 Nov 2009 15:36:21 +0100 (CET) Content-Disposition: inline In-Reply-To: <78C217F4-D3EA-46BA-A237-CA0E54216D5E@uva.nl> 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 Trying out speedkeys and liking them, I guess I'm going to have a simple life using org from my phone from now on ;) Carsten Dominik schrieb: > In the speed map, yes, there is space, and you can add keys yourself. > But I would recommend making these with confirmation query. > (setq org-speed-commands-user > '(("A" . (let ((org-archive-default-command > 'org-archive-to-archive-sibling)) > (org-archive-subtree-default-with-confirmation))))) > I am happy to have a discussion what additional > commands should be present by default. This is what i'm using: (("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 no function org-archive-subtree-default-with-confirmation and org-agenda-archive-subtree-with-confirmation complains that I'm not in the agenda, so I've just adding my own y-or-n-p, since 'A' will actually move trees to an archive file. On my phone I get frequently annoyed when I can't see enough because emacs splits the screen all the time, so a speed key to unsplit and move the current item to the top of the screen is logical. I'm not completely happy with 'y', since it makes me think 'yank' but it's also slightly similar to 'l' and C-l is the default binding. 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. (Because of playing nethack of course, hm, that's a nice and large fireplace you have there! What's for dinner?) Oh and the ',' is most obvious, I think. (Hey, what's with the torches? Oh right, nightime barbecue, haha!) Kind regards Friedel -- Friedrich Delgado Friedrichs TauPan on Ircnet and Freenode ;)