> -----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-sto
> p)


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.

Happy trails.

Charlie.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to