help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: document when no hook is available


From: Juanma Barranquero
Subject: Re: document when no hook is available
Date: Sat, 10 Dec 2011 03:45:43 +0100

On Fri, Dec 9, 2011 at 21:40,  <address@hidden> wrote:

> E.g., the user wants all ZZZ mode files to be in flyspell-prog-mode. The
> problem is the ZZZ-mode author didn't remember to add a hook, and we are
> on a read only system where all we can change is our .emacs.

Doesn't

  (defadvice ZZZ-mode (after ZZZ-add-hook activate)
     (run-mode-hooks 'ZZZ-mode-hook))

suffice?

    Juanma



reply via email to

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