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: Andreas Politz
Subject: Re: Auto-fit *Help* buffer
Date: Mon, 28 Sep 2009 16:04:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Nordlöw <per.nordlow@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





reply via email to

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