emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Tim O'Callaghan <tim.ocallaghan@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <3B2C56A6-F920-4124-8B37-5FDAA901C305@gmail.com> (raw)
In-Reply-To: <x2n3d6808891005030334p1e9ff366w7e477c088b84f2f9@mail.gmail.com>

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

      reply	other threads:[~2010-05-13  5:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-03 10:34 [FEATURE REQUEST] Comment Speedkeys or - A solution to the Remember mode three finger salute Tim O'Callaghan
2010-05-13  5:33 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B2C56A6-F920-4124-8B37-5FDAA901C305@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tim.ocallaghan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).