all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how can I  replace one keybing  with  another  one ?
Date: Wed, 26 Sep 2012 12:10:33 +0200	[thread overview]
Message-ID: <87lifx3xie.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.9754.1348647929.855.help-gnu-emacs@gnu.org

horse_rivers <horse_rivers@126.com> writes:

> hi,
>     how can I  replace one keybing  with  another  one ? 
>    for example,I want to use ctrl-a to replace ctrl-x-o,how to write my .emacs file?

C-h k C-x C-o will tell you waht function is bound to C-x C-o.
(global-set-key (kbd "C-a") 'that-function) in you ~/.emacs will bind
C-a to that function.

Here, C-x C-o is bound to delete-blank-lines, so:
(global-set-key (kbd "C-a") 'delete-blank-lines)
You can activate it immediately typing C-x C-e after it.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


       reply	other threads:[~2012-09-26 10:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.9754.1348647929.855.help-gnu-emacs@gnu.org>
2012-09-26 10:10 ` Pascal J. Bourguignon [this message]
2012-09-26 13:07   ` Re:Re: how can I replace one keybing with another one ? horse_rivers
2012-09-26 14:52     ` Óscar Fuentes
2012-09-27  1:15       ` horse_rivers
2012-09-27  2:25         ` Óscar Fuentes
2012-09-27  2:39           ` horse_rivers
2012-09-27  3:36             ` Óscar Fuentes
2012-09-27  6:04               ` horse_rivers
2012-09-27 16:08                 ` Stefan Schlee
2012-09-26  8:25 horse_rivers

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=87lifx3xie.fsf@kuiper.lan.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.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.