> I have the following key binding in my .emacs file
> (global-set-key "\M-s" 'save-buffer)
Notice the word "global" at the beginning of the function
`global-set-key'. This means that it gets overridden by special modes.
The mode is buffer-local, meaning that if you switch to another major
mode, the binding is still there. What you want to do is redefine it
for text mode: there's a great explanation of how to fix keybindings
that inadvertently get reset by major modes in Chapter 11, section
"Customizing Existing Modes" of _Learning GNU Emacs_ from O'Reilly.
Here's a summary:
(define-key text-mode-map "\M-s" 'save-buffer)))
Try "M-x describe-mode" for a listing of keybindings. "\M-x where-is"
also tells you the keybinding of any command.
Joel J. Adamson
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114