From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Speed commands (was: Release 6.33) Date: Fri, 20 Nov 2009 15:57:09 +0100 Message-ID: <95E34029-6EF2-4E77-B303-37676E5FA79F@gmail.com> 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> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBUvK-0005zy-HS for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:57:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBUvF-0005xp-PV for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:57:22 -0500 Received: from [199.232.76.173] (port=59531 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBUvF-0005xm-Mq for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:57:17 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:65009) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBUvE-0004Po-HP for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:57:17 -0500 Received: by ewy24 with SMTP id 24so112092ewy.26 for ; Fri, 20 Nov 2009 06:57:12 -0800 (PST) In-Reply-To: <20091120143546.GA1227@taupan.ath.cx> 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: friedel@nomaden.org Cc: emacs-orgmode@gnu.org Hi Friedrich, On Nov 20, 2009, at 3:35 PM, Friedrich Delgado Friedrichs wrote: > > 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)) Thanks for sharing these! > 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. 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. > 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. I don't understand what you are proposing here. > (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. 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)))) - Carsten