GNU bug report logs - #8551
making Emacs remember a key binding to 'other-window

Previous Next

Package: emacs;

Reported by: Kevin Michael Simonson <simonsonkm <at> familysearch.org>

Date: Mon, 25 Apr 2011 17:42:02 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Kevin Michael Simonson <simonsonkm <at> familysearch.org>
Subject: bug#8551: closed (Re: bug#8551: making Emacs remember a key
 binding to 'other-window)
Date: Mon, 25 Apr 2011 19:40:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#8551: making Emacs remember a key binding to 'other-window

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 8551 <at> debbugs.gnu.org.

-- 
8551: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8551
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Kevin Michael Simonson <simonsonkm <at> familysearch.org>
Cc: 8551-done <at> debbugs.gnu.org
Subject: Re: bug#8551: making Emacs remember a key binding to 'other-window
Date: Mon, 25 Apr 2011 16:39:24 -0300
> I am often running Emacs with multiple windows.  In my opinion the "C-x o"
> key-combination is too cumbersome, and I never use the "open-line" function
> "C-o" is bound to, so I'm always using "global-set-key" to bind "C-o" to
> "other-window".  How can I put that key binding in my ".emacs" file so that
> this key binding is remembered and I don't have to keep executing
> "global-set-key" manually?

I'd recommend you post such questions to gnu.emacs.help, since it's
neither a bug report, nor a feature request, but just a question.

As for answers, the Emacs manual (reachable via the Help menu, for
example) is a good way to figure it out.  It has a whole section "53.4.6
Rebinding Keys in Your Init File" with examples.

So for your case, you'd do:

   (global-set-key [?\C-o] 'other-window)


-- Stefan

[Message part 3 (message/rfc822, inline)]
From: Kevin Michael Simonson <simonsonkm <at> familysearch.org>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: making Emacs remember a key binding to 'other-window
Date: Mon, 25 Apr 2011 11:28:46 -0600
[Message part 4 (text/plain, inline)]
I am often running Emacs with multiple windows.  In my opinion the "C-x o" key-combination is too cumbersome, and I never use the "open-line" function "C-o" is bound to, so I'm always using "global-set-key" to bind "C-o" to "other-window".  How can I put that key binding in my ".emacs" file so that this key binding is remembered and I don't have to keep executing "global-set-key" manually?

Kevin Simonson


 NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.


[Message part 5 (text/html, inline)]

This bug report was last modified 14 years and 88 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.