From: "Drew Adams" <drew.adams@oracle.com>
To: "'Kevin Michael Simonson'" <simonsonkm@familysearch.org>,
<8551@debbugs.gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: bug#8551: making Emacs remember a key binding to 'other-window
Date: Mon, 25 Apr 2011 11:50:45 -0700 [thread overview]
Message-ID: <E706A76185364801A03EC36F44F226FD__37115.0479455993$1303758463$gmane$org@us.oracle.com> (raw)
In-Reply-To: <3679AE44D8C04547A4F3EB83E7790562A8B3FE561E@MBX01.ldschurch.org>
> 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)
next prev parent reply other threads:[~2011-04-25 18:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-25 17:28 bug#8551: making Emacs remember a key binding to 'other-window Kevin Michael Simonson
2011-04-25 18:50 ` Drew Adams [this message]
2011-04-25 18:50 ` Drew Adams
2011-04-25 19:39 ` Stefan Monnier
2011-04-25 23:58 ` Deniz Dogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='E706A76185364801A03EC36F44F226FD__37115.0479455993$1303758463$gmane$org@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=8551@debbugs.gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=simonsonkm@familysearch.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.