From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: J G Miller Newsgroups: gmane.emacs.help Subject: Re: Window too big Date: Tue, 6 Oct 2015 14:42:22 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1444142764 17871 80.91.229.3 (6 Oct 2015 14:46:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 14:46:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 06 16:46:04 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZjTVD-0001ly-42 for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 16:46:03 +0200 Original-Received: from localhost ([::1]:52094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjTVC-0002g3-9k for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 10:46:02 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Injection-Date: Tue, 6 Oct 2015 14:42:22 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="832b4aa7827bf244be1bc635856e2c92"; logging-data="16443"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FlhUuOtnPj7JV4cAZ0Sh8b0TY68kfXDg=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:V/pDAH7ysYo2IboHPbaryo0LiP0= Original-Xref: usenet.stanford.edu gnu.emacs.help:215244 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107528 Archived-At: 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.