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

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

Re: Auto-fit *Help* buffer


From: Nordlöw
Subject: Re: Auto-fit *Help* buffer
Date: Mon, 28 Sep 2009 07:36:18 -0700 (PDT)
User-agent: G2/1.0

On Sep 28, 4:04 pm, Andreas Politz <poli...@fh-trier.de> wrote:
> Nordlöw <per.nord...@gmail.com> writes:
> > If it want to auto-fit the *Help* buffer to its contents, in what
> > advice or hook should I insert a call to shrink-window-if-larger-
> > than-
> > buffer()?
> > /Nordlöw
>
> (add-hook 'temp-buffer-show-hook
>           (lambda nil
>             (when (eq major-mode 'help-mode)
>               (shrink-window-if-larger-than-buffer))))
>
> -ap

Great!

Thanks,
Nordlöw


reply via email to

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