[Top][All Lists]

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

Re: How to keep window margins after switching buffers?

From: Jean Louis
Subject: Re: How to keep window margins after switching buffers?
Date: Sun, 25 Apr 2021 20:34:45 +0300
User-agent: Mutt/2.0.6 (2021-03-06)

* martin rudalics <rudalics@gmx.at> [2021-04-25 20:12]:
> > I have rather aesthetical need to have window margins, I use it as:
> >
> > (set-window-margins (get-buffer-window) 10 10)
> >
> > But when I switch to other buffer and come back margins disappea.
> >
> > Would there any way to keep margins for specific buffer even after
> > switching?
> I suppose you want to set `left-margin-width' and `right-margin-width'
> for that buffer instead.

That is right, thanks. I was setting that one in expectation it will
automatically resize margins. I see that I have to use both
set-window-margins and then also those variables for it to persist.


Take action in Free Software Foundation campaigns:

Sign an open letter in support of Richard M. Stallman

reply via email to

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