* Local key binding gone wrong!
@ 2014-01-05 3:35 Sharon Kimble
2014-01-05 19:36 ` Marc-Oliver Ihm
2014-01-05 19:41 ` Nick Dokos
0 siblings, 2 replies; 9+ messages in thread
From: Sharon Kimble @ 2014-01-05 3:35 UTC (permalink / raw)
To: emacs-orgmode Mailinglist
[-- Attachment #1: Type: text/plain, Size: 801 bytes --]
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 CapsLock now does not work for me to use in this
email!
So, how do I revert CapsLock to being its intended F13 please? And how
do I set up a local key binding to avoid this situation in the future
please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.4.2
Registered Linux user 561944
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Local key binding gone wrong!
2014-01-05 3:35 Local key binding gone wrong! Sharon Kimble
@ 2014-01-05 19:36 ` Marc-Oliver Ihm
2014-01-05 19:59 ` Sharon Kimble
2014-01-05 19:41 ` Nick Dokos
1 sibling, 1 reply; 9+ messages in thread
From: Marc-Oliver Ihm @ 2014-01-05 19:36 UTC (permalink / raw)
To: Sharon Kimble, emacs-orgmode Mailinglist
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 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 CapsLock now does not work for me to use in this
> email!
>
> So, how do I revert CapsLock to being its intended F13 please? And how
> do I set up a local key binding to avoid this situation in the future
> please?
>
> Thanks
> Sharon.
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Local key binding gone wrong!
2014-01-05 3:35 Local key binding gone wrong! Sharon Kimble
2014-01-05 19:36 ` Marc-Oliver Ihm
@ 2014-01-05 19:41 ` Nick Dokos
2014-01-05 20:59 ` Sharon Kimble
1 sibling, 1 reply; 9+ messages in thread
From: Nick Dokos @ 2014-01-05 19:41 UTC (permalink / raw)
To: emacs-orgmode
Sharon Kimble <boudiccas@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 one. How do I know its
> 'global'? Because CapsLock now does not work for me to use in this
> email!
>
> So, how do I revert CapsLock to being its intended F13 please?
If you have not added anything to .emacs (or whatever init file(s) you
use), just restart emacs. If you have, delete it and restart emacs.
--
Nick
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Local key binding gone wrong!
2014-01-05 19:36 ` Marc-Oliver Ihm
@ 2014-01-05 19:59 ` Sharon Kimble
2014-01-05 20:43 ` Sharon Kimble
0 siblings, 1 reply; 9+ messages in thread
From: Sharon Kimble @ 2014-01-05 19:59 UTC (permalink / raw)
To: Marc-Oliver Ihm; +Cc: emacs-orgmode Mailinglist
[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]
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 <marc@ihm.name> wrote:
> 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 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 CapsLock now does not work for me to use in
> > this email!
> >
> > So, how do I revert CapsLock to being its intended F13 please? And
> > how do I set up a local key binding to avoid this situation in the
> > future please?
> >
> > Thanks
> > Sharon.
> >
>
--
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.4.2
Registered Linux user 561944
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Local key binding gone wrong!
2014-01-05 19:59 ` Sharon Kimble
@ 2014-01-05 20:43 ` Sharon Kimble
2014-01-06 20:46 ` Marc Ihm
0 siblings, 1 reply; 9+ messages in thread
From: Sharon Kimble @ 2014-01-05 20:43 UTC (permalink / raw)
To: Marc-Oliver Ihm; +Cc: emacs-orgmode Mailinglist
[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]
Sharon Kimble <boudiccas@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
>Marc-Oliver Ihm <marc@ihm.name> wrote:
>
>> 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 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 CapsLock now does not work for me to use in
>> > this email!
>> >
>> > So, how do I revert CapsLock to being its intended F13 please? And
>> > how do I set up a local key binding to avoid this situation in the
>> > future please?
>> >
>> > Thanks
>> > Sharon.
>> >
>>
>
>
>
>--
>A taste of linux = http://www.sharons.org.uk
>efever = http://www.efever.blogspot.com/
>efever = http://sharon04.livejournal.com/
>my git repo = https://bitbucket.org/boudiccas/dots
>Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.4.2
>Registered Linux user 561944
Thinking about it, that is the original code in my .emacs which set it up correctly. The code that I typed in, in the mini-buffer was a local key-binding from the wikemacs site. Sorry I can't be more precise as I'm no longer at my computer.
Sharon.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
[-- Attachment #2: Type: text/html, Size: 2738 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Local key binding gone wrong!
2014-01-05 19:41 ` Nick Dokos
@ 2014-01-05 20:59 ` Sharon Kimble
2014-01-06 15:38 ` Nick Dokos
0 siblings, 1 reply; 9+ messages in thread
From: Sharon Kimble @ 2014-01-05 20:59 UTC (permalink / raw)
To: Nick Dokos, emacs-orgmode; +Cc: Sharon Kimble
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
Nick Dokos <ndokos@gmail.com> wrote:
>Sharon Kimble <boudiccas@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 one. How do I know its
>> 'global'? Because CapsLock now does not work for me to use in this
>> email!
>>
>> So, how do I revert CapsLock to being its intended F13 please?
>
>If you have not added anything to .emacs (or whatever init file(s) you
>use), just restart emacs. If you have, delete it and restart emacs.
>
>--
>Nick
Thanks for this, I'll try it tomorrow when I'm back on the computer.
Sharon.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
[-- Attachment #2: Type: text/html, Size: 1271 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Local key binding gone wrong!
2014-01-05 20:59 ` Sharon Kimble
@ 2014-01-06 15:38 ` Nick Dokos
0 siblings, 0 replies; 9+ messages in thread
From: Nick Dokos @ 2014-01-06 15:38 UTC (permalink / raw)
To: emacs-orgmode
Sharon Kimble <boudiccas@talktalk.net> writes:
> Nick Dokos <ndokos@gmail.com> wrote:
>
> Sharon Kimble <boudiccas@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 one. How do I know its
> 'global'? Because CapsLock now does not work for me to use in this
> email!
>
> So, how do I revert CapsLock to being its intended F13 please?
>
> If you have not added anything to .emacs (or whatever init file(s) you
> use), just restart emacs. If you have, delete it and rest
> art emacs.
>
> Thanks for this, I'll try it tomorrow when I'm back on the computer.
>
However, I noticed that you called xmodmap from emacs to modify the X
keymap - restarting emacs will not undo that side effect, but restarting
X as well should undo it.
Nick
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Local key binding gone wrong!
2014-01-05 20:43 ` Sharon Kimble
@ 2014-01-06 20:46 ` Marc Ihm
2014-01-06 21:29 ` Sharon Kimble
0 siblings, 1 reply; 9+ messages in thread
From: Marc Ihm @ 2014-01-06 20:46 UTC (permalink / raw)
To: Sharon Kimble; +Cc: emacs-orgmode Mailinglist
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)))
at least it does this for me:
- Set the current node to the TODO state given through the second key after f13
- Archive the node afterwards.
regards
Marc
Am 05.01.2014 21:43, schrieb Sharon Kimble:
> Sharon Kimble <boudiccas@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
> Marc-Oliver Ihm <marc@ihm.name> wrote:
>
> 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.201 4 04:35, schrieb 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 CapsLock now does not work for me to use in
> this email!
>
> So, how do I revert CapsLock to being its intended F13 please? And
> how do I set up a local key binding to avoid this situation in the
> future please?
>
> Thanks
> Sharon.
>
>
>
>
>
>
> --
> A taste of linux =http://www.sharons.org.uk
> efever =http://www.efever.blogspot.com/
> efever =http://sharon04.livejournal.com/
> my git repo =https://bitbucket.org/boudiccas/dots
> Debian
> testing, Fluxbox 1.3.5, LibreOffice4.1.4.2 <http://4.1.4.2>
> Registered Linux user 561944
>
>
> Thinking about it, that is the original code in my .emacs which set it up correctly. The code that I typed in, in the mini-buffer was a local key-binding from the wikemacs site. Sorry I can't be more precise as I'm no longer at my computer.
>
> Sharon.
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Local key binding gone wrong!
2014-01-06 20:46 ` Marc Ihm
@ 2014-01-06 21:29 ` Sharon Kimble
0 siblings, 0 replies; 9+ messages in thread
From: Sharon Kimble @ 2014-01-06 21:29 UTC (permalink / raw)
To: Marc Ihm, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 3014 bytes --]
Marc Ihm <marc@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)))
> (org-archive-subtree)))
>
>
>at least it does this for me:
>
>- Set the current node to the TODO state given through the second key
>after f13
>- Archive the node afterwards.
>
>
>regards
>Marc
>
>
>Am 05.01.2014 21:43, schrieb Sharon Kimble:
>> Sharon Kimble <boudiccas@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
>> Marc-Oliver Ihm <marc@ihm.name> wrote:
>>
>> 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.201 4 04:35, schrieb 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 CapsLock now does not work for me
>to use in
>> this email!
>>
>> So, how do I revert CapsLock to being its intended F13
>please? And
>> how do I set up a local key binding to avoid this
>situation in the
>> future please?
>>
>> Thanks
>> Sharon.
>>
>>
>>
>>
>>
>>
>> --
>> A taste of linux =http://www.sharons.org.uk
>> efever =http://www.efever.blogspot.com/
>> efever =http://sharon04.livejournal.com/
>> my git repo =https://bitbucket.org/boudiccas/dots
>> Debian
>> testing, Fluxbox 1.3.5, LibreOffice4.1.4.2 <http://4.1.4.2>
>> Registered Linux user 561944
>>
>>
>> Thinking about it, that is the original code in my .emacs which set
>it up correctly. The code that I typed in, in the mini-buffer was a
>local key-binding from the wikemacs site. Sorry I can't be more precise
>as I'm no longer at my computer.
>>
>> Sharon.
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
Sounds interesting, I'll have a play with it tomorrow when I'm back on the computer. And today when I went on it, caps lock had reset itself back to 'M-x' I'm glad to say. :-)
Thanks
Sharon.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
[-- Attachment #2: Type: text/html, Size: 3633 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-01-06 21:29 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-05 3:35 Local key binding gone wrong! Sharon Kimble
2014-01-05 19:36 ` Marc-Oliver Ihm
2014-01-05 19:59 ` Sharon Kimble
2014-01-05 20:43 ` Sharon Kimble
2014-01-06 20:46 ` Marc Ihm
2014-01-06 21:29 ` Sharon Kimble
2014-01-05 19:41 ` Nick Dokos
2014-01-05 20:59 ` Sharon Kimble
2014-01-06 15:38 ` Nick Dokos
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).