all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Kevin Michael Simonson <simonsonkm@familysearch.org>
Cc: 8551-done@debbugs.gnu.org
Subject: bug#8551: making Emacs remember a key binding to 'other-window
Date: Mon, 25 Apr 2011 16:39:24 -0300	[thread overview]
Message-ID: <jwv39l6w2c6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <3679AE44D8C04547A4F3EB83E7790562A8B3FE561E@MBX01.ldschurch.org> (Kevin Michael Simonson's message of "Mon, 25 Apr 2011 11:28:46 -0600")

> 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





  parent reply	other threads:[~2011-04-25 19:39 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
2011-04-25 18:50 ` Drew Adams
2011-04-25 19:39 ` Stefan Monnier [this message]
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=jwv39l6w2c6.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=8551-done@debbugs.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.