emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [FEATURE REQUEST] Comment Speedkeys or - A solution to the Remember mode three finger salute
@ 2010-05-03 10:34 Tim O'Callaghan
  2010-05-13  5:33 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Tim O'Callaghan @ 2010-05-03 10:34 UTC (permalink / raw)
  To: org-mode

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FEATURE REQUEST] Comment Speedkeys or - A solution to the Remember mode three finger salute
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-05-13  5:33 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-13  5:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).