Hi Joel,
For a detailed explanation of keybindings, I recommend
http://tiny-tools.sourceforge.net/emacs-keys.html
Here are some examples from my own .emacs file. You can put in whatever
command names you want.
Some of these may not apply to your keyboard.
Some of these may already have bindings.
(define-key global-map [f2] 'save-buffer)
(define-key global-map [C-f2] 'listbuf)
(define-key global-map [M-f2] 'dired)
(define-key global-map [27 f2] 'print-buffer)
(define-key global-map [27 C-f2] 'print-region)
(27 is the escape key, M corresponds to the Alt key on my Windows (ugh)
keyboard)
(define-key global-map [home] 'beginning-of-line)
(define-key global-map [S-home] 'beginning-of-buffer)
(define-key global-map [C-home] 'beginning-of-defun)
(define-key global-map (kbd "C-2") 'insert-register)
(define-key global-map (kbd "M-2") 'inverse-add-mode-abbrev)
(define-key global-map (kbd "C-M-2") 'edit-abbrevs)
(define-key global-map (kbd "C-@") 'just-one-space)
(define-key global-map (kbd "M-@") 'canonically-space-region)
for examples of customization of all sorts in your .emacs file try
http://www.dotemacs.de/
Here are some links to emacs basics:
If you don't already have it you should get the
GNU Emacs Manual
at
http://www.gnu.org/manual/emacs-20.3/emacs.html
and the
GNU Emacs FAQ
at
http://www.lerner.co.il/emacs/
for a summary of functionality try
Emacs Quick Reference
at
http://seamons.com/emacs/
If you work in a window environment, you need to look at
GNU Emacs FAQ For Windows 95/98/ME, and 2000
http://www.gnu.org/software/emacs/windows/ntemacs.html
O'Reilly publishes some useful books:
Learning GNU Emacs
Writing GNU Emacs extensions
- Aaron
Joel Cordonnier
<joelcordonnier To: [EMAIL PROTECTED]
@yahoo.fr> cc:
Subject: newbie question, Emacs /ECB
07/19/2001
08:55 AM
Hi !
Can someone explain me, how to write my own emacs lisp
commands to bind key strokes to the command 'close
ecb'
Thanks
Joel
___________________________________________________________
Do You Yahoo!? -- Vos albums photos en ligne,
Yahoo! Photos : http://fr.photos.yahoo.com