3

Under some conditions Emacs will try to resize a frame if its not fullscreen or maximized.

(specifically default-text-scale, but I don't think its the only one).

This sends window-manager window (aka Emacs frame) resize commands, which get ignored, making the frame flicker when scaling fonts for eg.

Running toggle-frame-maximized solves this until the window manager moves the frame which resets Emacs internal state.

I tried:

(add-to-list
  'default-frame-alist 
  '(fullscreen . maximized))

Which works at startup until the frame is moved.


How to configure Emacs so it's always maximized, or so that plugins don't think it's possible to resize the frame?

Tested with spectrwm and notion window managers.

  • I suggest that you mention which window manager you are using. – mikado Feb 6 at 16:32
  • You might want to set frame-resize-pixelwise to t, as it will prevent the window from resizing according to font size. It works well for me with dwm. – DoMiNeLa10 Feb 6 at 17:29
  • @mikado notion / spectrwm, @DoMiNeLa10 doesn't resolve issue w/ default-text-scale – ideasman42 Feb 6 at 21:13
  • 1
    Are you using the newest version of Emacs? Double buffering got added recently, and it effectively gets rid of flickering. – DoMiNeLa10 Feb 6 at 22:49
  • @DoMiNeLa10 version 26.1 – ideasman42 Feb 6 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.