Emacs has been starting up in an extremely small window for some reason. The text size is normal, but the window is something like 3 lines tall x 10 chars wide. Of course I can use my mouse and just resize the window, after which it works totally fine.
I'm using Fedora 38 with Emacs 28.2 installed from dnf (Fedora's package manager). Desktop environment is "Gnome (not classic) with X11". I have nearly zero customizations, except I've hidden the scroll bar, tool bar, and menu bar using the M-` menu. Both my default-frame-alist
and initial-frame-alist
just has a single vertical-scroll-bars = nil
, though there's a second line that says "CHANGED outside Customize", but I think that refers to the M-` menu being not part of the "customize" feature?
Fedora comes with Gnome with Wayland by default, but I switched it to X11 using the "cog" menu in login, and I think but am not 100% that this issue only started happening to me after the switch (on Wayland, I think it was not happening). When I do ls ~ -a
I don't see any .Xresources
or .Xdefaults
.
What's going on?
edit: I tried opening emacs multiple times in a row, and sometimes it opens in a normal-sized window. Maybe half the time. I also tried doing emacs -Q
and emacs -q
and the issue does not happen: I just get an ordinary-sized window.
for reference, here is my ~/.emacs file (comments omitted for brevity):
(custom-set-variables
'(custom-enabled-themes '(wheatgrass))
'(make-backup-files nil)
'(menu-bar-mode nil)
'(ring-bell-function 'ignore)
'(scroll-bar-mode nil)
'(tool-bar-mode nil))
(custom-set-faces
'(default ((t (:family "Noto Sans Mono" :foundry "GOOG" :slant normal :weight normal :height 139 :width normal)))))