Disclaimer: I have already posted an issue to emacs-winum: see here. I'm submitting this issue here because: 1. I'm no longer clear that the problem is caused by winum (or that it can be solved from there), and 2. The winum repo seems to be inactive.
The Problem
When both winum and golden-ratio modes are loaded and I move between windows with winum, windows are NOT automatically resized by golden-ratio.
Setup
The following are the relevant parts of my .emacs:
;;; set Meta as windomove's modifiers:
(windmove-default-keybindings 'meta)
;;; enable golden ratio
(require 'golden-ratio)
(golden-ratio-mode 1)
(setq golden-ratio-auto-scale t)
;;; enable winum
(require 'winum)
(winum-mode)
Actual and Expected Behavior
Expected behavior: Move between windows with windmove (M-arrows) and windows are resized dynamically to their closest golden-ratio. --> Actual behavior: Windows are resized.
Expected behavior: Move between widnows with winum (C-x w number) and windows are resized to their closest golden-ratio. --> Actual behavior: Windows are not resized.
What I've tried:
I've tried loading the packages in different order: it doesn't matter which one is loaded first, the behavior is the same.
It doesn't matter if I load windmove or not: the problem is related to winum only.
It works if I issue M-x recenter at the selected window:
Once I have selected a target window with winum, I can force its resizing by M-x recenter
Versions:
This is GNU Emacs 29.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2024-05-10
winum 20190911.1607 installed Navigate windows and frames using numbers.
golden-ratio 20230912.1825 installed Automatic resizing of Emacs windows to the golden ratio
I love golden-ratio. So much so, that I'm not using winum. But I'd like to be able to use both, winum and golden-ratio.
Disclaimer: I have already posted an issue to emacs-winum: see here. I'm submitting this issue here because: 1. I'm no longer clear that the problem is caused by winum (or that it can be solved from there), and 2. The winum repo seems to be inactive.
The Problem
When both winum and golden-ratio modes are loaded and I move between windows with winum, windows are NOT automatically resized by golden-ratio.
Setup
The following are the relevant parts of my
.emacs
:Actual and Expected Behavior
winum
(C-x w number) and windows are resized to their closest golden-ratio. --> Actual behavior: Windows are not resized.What I've tried:
M-x recenter
at the selected window:M-x recenter
Versions:
I love golden-ratio. So much so, that I'm not using winum. But I'd like to be able to use both, winum and golden-ratio.