help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can I replace one keybing with another one ?


From: Pascal J. Bourguignon
Subject: Re: how can I replace one keybing with another one ?
Date: Wed, 26 Sep 2012 12:10:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]