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

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

Re: Window too big


From: J G Miller
Subject: Re: Window too big
Date: Tue, 6 Oct 2015 14:42:22 +0000 (UTC)
User-agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)

On Tuesday, October 6th, 2015, at 01:19:22 +0000, Hendrik Boom observed:

> When I start emacs from the menu in xcfe, it always is slightly taller 
> than my screen.  I have to mouse around and make it smaller before it is 
> usable.  Is there something I can put, say, in my ~/.emacs file to change 
> how tall it is?

emacs can use the apps-default emacs.geometry to comply with height and width
and position.

So you can create an apps-default Emacs file in a directory in the apps-default
search path or a directory specified by the environmental variable XAPPLRESDIR
and put in a line

emacs.geometry: widthxheight+x_position+y_position

In fact you could have -x_position or -y_position if you wanted the
position to be relative to the right or bottom of the screen.

Optionally the values in the Emacs apps-default file can be loaded into the
X11 resource database property with xrdb (during the Xsession startup sequence)
for faster loading (instead of emacs searching for the apps-default file).

You can also set frame sizes (and other properties) in emacsrc file with

(cond ((eq window-system 'x)

       (setq default-frame-alist
             '((user-position . t)
               (user-size     . t)
               (height        . 42)
               (width         . 108)
               (top           .  0)
               (left          .  0)
               (cursor-color  . "#dddd44")
               (mouse-color   . "#ffffaa")))

)

but the values for height widrth and position here are overriden (in my 
experience)
by the Emacs apps-default values if they are set.


reply via email to

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