help-gnu-emacs
[Top][All Lists]
Advanced

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

Frame shifted upwards upon changing font size


From: uzibalqa
Subject: Frame shifted upwards upon changing font size
Date: Tue, 13 Sep 2022 04:27:17 +0000

I have a setup that opens emacs at the centre of the screen.

But then I want to have a specific font size and call

(set-face-attribute 'default nil :height 160 :weight 'bold)

This puts the menu-bar outside the screen.  What can I do to keep the window at 
the
center of the screen?

This is the function I use

(defun xframe ()
  "Emacs Startup prior to setting a Development Theme"

  (typex-inhibit-startup-windows)
  (set-face-attribute 'default nil :height 160 :weight 'bold)
  (setq initial-frame-alist '((width . 75) (height . 21)) )






reply via email to

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