[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Changing height to fit window
From: |
Heime |
Subject: |
RE: [External] : Changing height to fit window |
Date: |
Tue, 29 Nov 2022 23:15:56 +0000 |
------- Original Message -------
On Tuesday, November 29th, 2022 at 10:58 PM, Drew Adams <drew.adams@oracle.com>
wrote:
> > One can C-x C-+ and C-x C-- to call text-scale-adjust,
> > which increases or decreases the buffer text size, with
> > C-+ or C-- to repeat.
> >
> > Instead of repeating, I want to have a function that adjusts
> > the scale so that the contents of the buffer fit the window,
> > based on the longest line. What can I do?
>
>
> Dunno whether this corresponds to what you're
> asking, but library `face-remap+.el' adjusts the frame/window size to the
> scaled text size, when option` text-scale-resize-window' is non-nil.
I want the opposite - given a window size, fit things in there with one call.
> The particular non-nil value controls whether
> the window-fitting is horizontally, vertically,
> or both.
>
> ;; URL: https://www.emacswiki.org/emacs/download/face-remap%2B.el
> ;; Doc URL: https://emacswiki.org/emacs/SetFonts