Chris,

I'd suggest "Teach Yourself Emacs in 24 hours" by Jesper Pedersen.
This book unfortunately looks like many low-quality computer books
with titles like "XXX for Dummies".  Hiding behind the formatting is a
very good book.  It covers basic Emacs Lisp and key rebinding, and how
to discover the Emacs name for a key.  I've used Emacs for years, and
would echo the quote on the cover: "...even though I know a lot about
Emacs, I learned several new tricks."

Here's some quick pointers to your questions.  I use XEmacs under
Linux.  I have the following in my ~.xemacs/init.el file to set up
some basic key bindings:

(global-set-key [f2]   'find-file)
(global-set-key [f3]   'find-file-read-only)
(global-set-key [f4]   'save-buffer)
(global-set-key [f5]   'kill-buffer)
(global-set-key [f6]   'undo)
(global-set-key [f7]   'goto-line)
(global-set-key [f8]   'start-kbd-macro)
(global-set-key [f9]   'end-kbd-macro)
(global-set-key [f10]  'call-last-kbd-macro)
(global-set-key [f12]  'save-buffers-kill-emacs)

That's how you might map keys in all modes.  To bind keys so that they
are active only in JDE mode, you do something different.  Open a java
file so that you're in JDE mode, then do something like

Click JDE->Project->Options->General
Find the Key Bindings entry.
Set the key for jde-compile to [kp-insert].
Set the key for jde-build to [kp-add].
Click Set/Save/Done.

Hope this helps.

-- Pete





Reply via email to