[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to set margins of buffer when window changes?
From: |
Emanuel Berg |
Subject: |
Re: How to set margins of buffer when window changes? |
Date: |
Wed, 08 Sep 2021 21:27:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> I have the code below, but I get the error: `Window ... too
>> small for splitting' (replace `...'
>
> But that code doesn't work (at all), for example what is
> "window", "(width)", and "(fill-column)"?
OK, now I see, "window" is window! (I didn't see it because
I've never seen a `defun' inside a `with-eval-after-load'.)
(fill-column) is also correct because it isn't a function but
a `cond' clause ...
But (width) still doesn't work, it should look like
this, right?
(cond (width (fill-column)))
If so, it is even better to use `when' here:
(when width
(fill-column) )
--
underground experts united
https://dataswamp.org/~incal