* how can I replace one keybing with another one ?
@ 2012-09-26 8:25 horse_rivers
0 siblings, 0 replies; 5+ messages in thread
From: horse_rivers @ 2012-09-26 8:25 UTC (permalink / raw)
To: emacs help list
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?
thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how can I replace one keybing with another one ?
[not found] <mailman.9754.1348647929.855.help-gnu-emacs@gnu.org>
@ 2012-09-26 10:10 ` Pascal J. Bourguignon
2012-09-26 13:07 ` horse_rivers
0 siblings, 1 reply; 5+ messages in thread
From: Pascal J. Bourguignon @ 2012-09-26 10:10 UTC (permalink / raw)
To: help-gnu-emacs
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 {}.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how can I replace one keybing with another one ?
2012-09-26 13:07 ` horse_rivers
@ 2012-09-26 14:52 ` Óscar Fuentes
2012-09-27 1:15 ` horse_rivers
0 siblings, 1 reply; 5+ messages in thread
From: Óscar Fuentes @ 2012-09-26 14:52 UTC (permalink / raw)
To: help-gnu-emacs
horse_rivers <horse_rivers@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').
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how can I replace one keybing with another one ?
2012-09-27 1:15 ` horse_rivers
@ 2012-09-27 2:25 ` Óscar Fuentes
2012-09-27 2:39 ` horse_rivers
0 siblings, 1 reply; 5+ messages in thread
From: Óscar Fuentes @ 2012-09-27 2:25 UTC (permalink / raw)
To: help-gnu-emacs
horse_rivers <horse_rivers@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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how can I replace one keybing with another one ?
2012-09-27 2:39 ` horse_rivers
@ 2012-09-27 3:36 ` Óscar Fuentes
0 siblings, 0 replies; 5+ messages in thread
From: Óscar Fuentes @ 2012-09-27 3:36 UTC (permalink / raw)
To: help-gnu-emacs
horse_rivers <horse_rivers@126.com> writes:
> if I want to read the manul for lisp in emacs help manul doc ,what key
> to type in emacs ?
Go to the "Help" menu, then to "More Manuals" and finally to "Emacs Lisp
Reference".
Another way is
C-h i m elisp [INTRO]
It is recommended to first read the "Introduction to Emacs Lisp",
available from the same submenu as the other manual.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-27 3:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26 8:25 how can I replace one keybing with another one ? horse_rivers
[not found] <mailman.9754.1348647929.855.help-gnu-emacs@gnu.org>
2012-09-26 10:10 ` Pascal J. Bourguignon
2012-09-26 13:07 ` 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
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.