protesilaos / spacious-padding

Increase the padding/spacing of GNU Emacs frames and windows.
GNU General Public License v3.0
64 stars 3 forks source link

Spacious-Padding is misaligned on opening it #18

Closed breddiesucks closed 1 day ago

breddiesucks commented 3 months ago

I want to make clear that I am a novice and was setting up emacs from ground up with the help of forums and guides. I am using spacious padding so Emacs looks less cramped and more spacious. And I am actually very satisfied with the result, but the issue is, when I open a new instance of emacs, the padding is oriented for full screen res rather than the window size.

Emacs when booting up: image

Emacs after resizing/using a C-x or M-x command: image

Could this be an issue of my window manager (herbstluftwm+xfce) or is it a issue with emacs? I can understand that this issue is very superficial and trivial, but I would love to resolve this little untied knot.

Cheers :)

protesilaos commented 3 months ago

From: breddie @.***> Date: Fri, 28 Jun 2024 22:14:37 -0700

[... 12 lines elided]

Could this be an issue of my window manager (herbstluftwm+xfce) or is it a issue with emacs? I can understand that this issue is very superficial and trivial, but I would love to resolve this little untied knot.

I think this is an issue with herbstluftwm in combination with some default Emacs settings. Add these to your 'early-init.el':

(setq frame-resize-pixelwise t)
(setq frame-inhibit-implied-resize t)

Do 'M-x describe-variable' and search for those two to see how they relate to this issue.

On the 'spacious-padding' front, we do have any code to resize windows. This is the task of Emacs' window manager.

-- Protesilaos Stavrou https://protesilaos.com

breddiesucks commented 3 months ago

The given variable change resolves the issue. Will there be any repercussions if I put these at the start of init.el instead of early-init.el. (Sorry if this sounded daft and immature, it has been a while since I troubleshooted with my dotfiles as a whole)

protesilaos commented 3 months ago

From: breddie @.***> Date: Sat, 29 Jun 2024 05:17:14 -0700

The given variable change resolves the issue. Will there be any repercussions if I put these at the start of init.el instead of early-init.el. (Sorry if this sounded daft and immature, it has been a while since I troubleshooted with my dotfiles as a whole)

Putting them in the early-init.el makes them have effect before the first frame is drawn. The init.el is "too late" in that regard. But they will still work for any action/frame after the one at startup.

-- Protesilaos Stavrou https://protesilaos.com