From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [FEATURE REQUEST] Comment Speedkeys or - A solution to the Remember mode three finger salute Date: Thu, 13 May 2010 07:33:13 +0200 Message-ID: <3B2C56A6-F920-4124-8B37-5FDAA901C305@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=37789 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCR2v-0000fN-3Z for emacs-orgmode@gnu.org; Thu, 13 May 2010 01:33:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCR2s-0000gV-IB for emacs-orgmode@gnu.org; Thu, 13 May 2010 01:33:20 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:47469) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCR2s-0000gJ-8c for emacs-orgmode@gnu.org; Thu, 13 May 2010 01:33:18 -0400 Received: by ewy8 with SMTP id 8so396011ewy.8 for ; Wed, 12 May 2010 22:33:17 -0700 (PDT) In-Reply-To: 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: Tim O'Callaghan Cc: org-mode Hi Tim, you can set org-use-speed-commands to a function. When this function returns t, speed commands are active at that location. However, this will then make all speed keys active at that location, not only specific ones. Another, probably better, possibility to achieve what you want is to use org-remember-mode-hook to add text properties to the comment lines. Such text properties can define keymaps, see the section about Special Properties in the Emacs Lisp manual. In the same hook you could aslo change the text in the comment lines. Hope this helps - Carsten On May 3, 2010, at 12:34 PM, Tim O'Callaghan wrote: > Hi, > > My general org keyboard policy has been to avoid the use of any Ctrl > related keys, and remap them to Alt, or FN keys where possible. For > example I've mapped M-R to org-remember and M-O to org-ctrlc-ctrlc > etc. > > Today I've been looking to try and set up my alt 'speed keys' for the > prefix arg style 'three fingered salute' you need to use to refile > remember mode notes, and it seems i cannot. At least not without using > keyboard macros. I wanted to re-map M-R to refile and M-T > re-template.... > > ... which leads me to my feature request. > > Is it possible to extend the speed key functionality to org comment > lines? If so, could you assign speed keys to the comment lines in the > remember buffer? Hitting PgUp or M-< is natural, and then pressing a > single key to do my filing operation, would be great. I should then > also be able to assign speed keys for different re-file locations. > > This could possibly change the wording of the template at the top, and > presumably need some kind of functional re-factoring of the remember > code so that each operation has its own function.. > > Comment speed keys could then be used for #+SRC code blocks, setting > #+STARTUP features or whatever. > > Tim. > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten