horse_rivers <horse_riv...@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.
>> 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.
horse_rivers <horse_riv...@126.com> writes:
> oh,yeah! thank you very much!
> but what is the meaning of kbd ?
C-h f kbd [ENTER]
kbd is a compiled Lisp function in `subr.el'.
(kbd KEYS)
Convert KEYS to the internal Emacs key representation.
KEYS should be a string constant in the format used for
saving keyboard macros (see `edmacro-mode').
>> oh,yeah! thank you very much! >> but what is the meaning of kbd ?
>C-h f kbd [ENTER]
>kbd is a compiled Lisp function in `subr.el'.
>(kbd KEYS)
>Convert KEYS to the internal Emacs key representation. >KEYS should be a string constant in the format used for >saving keyboard macros (see `edmacro-mode').
horse_rivers <horse_riv...@126.com> writes:
> is there some documentation for these base knowledge?
Emacs is self-documented, as demonstrated on the response to your
previous inquiry. Additionally, it comes with a manual for the Emacs
Lisp language and for Emacs proper.
To learn more explore the contents of the Help menu in your Emacs.
If your question is about representing key sequences, see the "Key
Sequences" section on the Elisp Manual.
>> is there some documentation for these base knowledge?
>Emacs is self-documented, as demonstrated on the response to your >previous inquiry. Additionally, it comes with a manual for the Emacs >Lisp language and for Emacs proper.
>To learn more explore the contents of the Help menu in your Emacs.
>If your question is about representing key sequences, see the "Key >Sequences" section on the Elisp Manual.
________________________________ From: horse_rivers <horse_riv...@126.com> To: help-gnu-em...@gnu.org Sent: Thursday, September 27, 2012 8:04 AM Subject: Re:Re: how can I replace one keybing with another one ?
when I read the manul .I will get into the subitem step by step , so how to come back to previous view ?
At 2012-09-27 11:36:15,"Óscar Fuentes" <o...@wanadoo.es> wrote: