Re: [O] Local key binding gone wrong!

2014-01-06 Thread Nick Dokos
Sharon Kimble boudic...@talktalk.net writes: Nick Dokos ndo...@gmail.com wrote: Sharon Kimble boudic...@talktalk.net writes: Whilst trying to set a key binding to archive 'DONE' todo items, by trying to bind F13 [aka CapsLock] to '2', so the finished intended

Re: [O] Local key binding gone wrong!

2014-01-06 Thread Marc Ihm
Hi Sharon ! Setting CapsLock to f13 is a neat trick ! Maybe this could help with the rest of your question: (global-set-key (kbd f13) (lambda (ARG) (interactive c) (org-todo (string-to-number (char-to-string ARG))) (org-archive-subtree)))

Re: [O] Local key binding gone wrong!

2014-01-06 Thread Sharon Kimble
Marc Ihm m...@ihm.name wrote: Hi Sharon ! Setting CapsLock to f13 is a neat trick ! Maybe this could help with the rest of your question: (global-set-key (kbd f13) (lambda (ARG) (interactive c) (org-todo (string-to-number (char-to-string ARG)))

Re: [O] Local key binding gone wrong!

2014-01-05 Thread Marc-Oliver Ihm
Hi Sharon, not sure, what happened in your setup. Maybe things can get clearer, if you would supply the line of lisp that you employed to bind F13. Was it something like (global-set-key [(f13)] 'org-archive-subtree) ? regards Marc Am 05.01.2014 04:35, schrieb Sharon Kimble: Whilst trying

Re: [O] Local key binding gone wrong!

2014-01-05 Thread Nick Dokos
Sharon Kimble boudic...@talktalk.net writes: Whilst trying to set a key binding to archive 'DONE' todo items, by trying to bind F13 [aka CapsLock] to '2', so the finished intended result would have been - F13 + 2 = DONE ARCHIVED. This is a global key binding, although I was trying for a local

Re: [O] Local key binding gone wrong!

2014-01-05 Thread Sharon Kimble
Thanks Marc. Here it is - (if (eq window-system 'x) (shell-command xmodmap -e 'clear Lock' -e 'keycode 66 = F13')) (global-set-key [f13] 'execute-extended-command) ;;sets caps-lock as meta-key Sharon. On Sun, 05 Jan 2014 20:36:20 +0100 Marc-Oliver Ihm m...@ihm.name wrote: Hi Sharon,

Re: [O] Local key binding gone wrong!

2014-01-05 Thread Sharon Kimble
Sharon Kimble boudic...@talktalk.net wrote: Thanks Marc. Here it is - (if (eq window-system 'x) (shell-command xmodmap -e 'clear Lock' -e 'keycode 66 = F13')) (global-set-key [f13] 'execute-extended-command) ;;sets caps-lock as meta-key Sharon. On Sun, 05 Jan 2014 20:36:20 +0100

Re: [O] Local key binding gone wrong!

2014-01-05 Thread Sharon Kimble
Nick Dokos ndo...@gmail.com wrote: Sharon Kimble boudic...@talktalk.net writes: Whilst trying to set a key binding to archive 'DONE' todo items, by trying to bind F13 [aka CapsLock] to '2', so the finished intended result would have been - F13 + 2 = DONE ARCHIVED. This is a global key

[O] Local key binding gone wrong!

2014-01-04 Thread Sharon Kimble
Whilst trying to set a key binding to archive 'DONE' todo items, by trying to bind F13 [aka CapsLock] to '2', so the finished intended result would have been - F13 + 2 = DONE ARCHIVED. This is a global key binding, although I was trying for a local one. How do I know its 'global'? Because