emacs-devel
[Top][All Lists]
Advanced

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

Re: Zoom: a window management minor mode -- best practices and questions


From: Stefan Monnier
Subject: Re: Zoom: a window management minor mode -- best practices and questions
Date: Wed, 09 May 2018 08:33:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> (add-hook 'pre-redisplay-function 'foo)
>
> `add-hook' is for variables which are lists of functions, for
> pre-redisplay-function which holds a single function, you should use
> add-function:
>
> (add-function :after pre-redisplay-function #'foo)

Indeed.
And there's also pre-redisplay-functions which you can use with add-hook
and is slightly simpler to use.


        Stefan




reply via email to

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