[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add-hook versus custom-set-variables

From: Stefan Monnier
Subject: Re: add-hook versus custom-set-variables
Date: Wed, 28 Dec 2005 22:24:02 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Two workarounds which aren't pretty are to insist that the user add a
> defvar in .emacs for any hook he customizes

I don't understand what you're suggesting here.
How could a defvar in .emacs help?

>     ;; MH-E hooks
>     (eval-after-load 'mh-customize
>       (progn
>       (message "Adding mailcrypt hooks to MH-E...")
>       (add-hook 'mh-folder-mode-hook 'mc-install-read-mode)
>       (add-hook 'mh-letter-mode-hook 'mc-install-write-mode)))

eval-after-load is a function, not a macro.  I know it's counter


reply via email to

[Prev in Thread] Current Thread [Next in Thread]