"Charlie Reiman" <[EMAIL PROTECTED]> writes: >> -----Original Message----- >> From: Bob Hilliard [mailto:[EMAIL PROTECTED]] >> Sent: Friday, February 14, 2003 12:15 PM >> To: [EMAIL PROTECTED] >> Subject: Emacs Key Bindings >> >> >> I like to indent the first line of each paragraph. By default, >> emacs (in text mode) considers only blank lines and page delimiters as >> paragraph delimiters, and binds the TAB key to "indent-relative". To >> change this, I have the following lines in .emacs: >> >> (setq default-major-mode 'paragraph-indent-text-mode ) >> (add-hook 'paragraph-indent-text-mode-hook `local-set-key "\t" >> `tab-to-tab-stop) > > > Try: > > (add-hook 'paragraph-indent-text-mode-hook > (lambda () > (local-set-key "\t" `tab-to-tab-stop))) > > It looks like you incorrectly copied someone who did the equally valid: > > (defun my-paragraph-indent-text-mode-hook () > (set-blah blah)) > > (add-hook 'paragraph-indent-text-mode-hook > 'my-paragraph-indent-text-mode-hook) > > This latter techinque is a bit better since you can use your hook later if > you need it in a different mode. It also makes it easier to tweak things > without restarting emacs, since then you just need to redefine the function > rather than trying to replace your lambda in the hook list.
Thank you very much, Charlie. I have used your second technique, and added it and the following to my .emacs: (add-hook 'message-mode-hook 'my-paragraph-indent-text-mode-hook) Your suggestion works like a charm for editing text, and the addition makes the TAB key work properly in Gnus' message mode. I have tried several variations to try to make message mode act like paragraph-indent-text-mode without success. Can you suggest a way to accomplish this? Regards, Bob -- _ |_) _ |_ Robert D. Hilliard <[EMAIL PROTECTED]> |_) (_) |_) 1294 S.W. Seagull Way <[EMAIL PROTECTED]> Palm City, FL 34990 USA GPG Key ID: 390D6559 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]