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

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

Re: Querying available mode hooks in a given mode


From: Eric Abrahamsen
Subject: Re: Querying available mode hooks in a given mode
Date: Sun, 13 Apr 2014 12:54:33 +0800
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux)

Grant Rettke <gcr@wisdomandwonder.com> writes:

> Hi,
>
> My goal is to, after a mode has been entered, to check whether a
> particular hook exists. If it does or
> does not exist, then I will run some handler code.
>
> In an attempt to find a may to check for what hooks exist, I read the
> manual, specifically the hooks
> section, and didn't see what are obvious places to look.
>
> Any idea where I should start?
>
> Regards,
>
> Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
> grettke@acm.org | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson

Unless the mode author is straying pretty far from accepted practice,
you can usually see all the hooks by doing C-h v, then typing
modeprefix--hook, and hitting TAB. That should give you a *Completion*
buffer with all the matching variables.

Eric




reply via email to

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