unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* RE: bug#8551: making Emacs remember a key binding to 'other-window
       [not found] <3679AE44D8C04547A4F3EB83E7790562A8B3FE561E@MBX01.ldschurch.org>
@ 2011-04-25 18:50 ` Drew Adams
  0 siblings, 0 replies; only message in thread
From: Drew Adams @ 2011-04-25 18:50 UTC (permalink / raw)
  To: 'Kevin Michael Simonson', 8551; +Cc: help-gnu-emacs

> 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

A couple of administrative things, FYI:
* The best mailing list for questions like this is
  `help-gnu-emacs@gnu.org' (cc'd).
* Please use plain-text, not HTML formatting, when sending mail
  to either the bug list or the help list.

---

Wrt your question, here's what I would suggest:

In Emacs 22+, where (fboundp 'command-remapping) is non-nil:

 (global-set-key [remap open-line] 'other-window) 

In Emacs before 22 (no command remapping):

 (substitute-key-definition 'open-line 'other-window global-map)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-25 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3679AE44D8C04547A4F3EB83E7790562A8B3FE561E@MBX01.ldschurch.org>
2011-04-25 18:50 ` bug#8551: making Emacs remember a key binding to 'other-window Drew Adams

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