but what is the meaning of kbd ?
At 2012-09-26 18:10:33,"Pascal J. Bourguignon" <pjb@informatimago.com> wrote:
>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 {}.