From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: n179911 Newsgroups: gmane.emacs.help Subject: Re: Emacs application window resizes everytime I start Date: Wed, 22 Dec 2010 10:57:21 -0800 Message-ID: References: <877hf2wzxz.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1293044272 8794 80.91.229.12 (22 Dec 2010 18:57:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Dec 2010 18:57:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Pascal J. Bourguignon" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 22 19:57:48 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVTsh-0000ZK-TS for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Dec 2010 19:57:48 +0100 Original-Received: from localhost ([127.0.0.1]:59969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVTsh-0004mU-EN for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Dec 2010 13:57:47 -0500 Original-Received: from [140.186.70.92] (port=59225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVTsL-0004kN-0M for help-gnu-emacs@gnu.org; Wed, 22 Dec 2010 13:57:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVTsJ-0008WE-AG for help-gnu-emacs@gnu.org; Wed, 22 Dec 2010 13:57:24 -0500 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:41766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVTsJ-0008W7-55 for help-gnu-emacs@gnu.org; Wed, 22 Dec 2010 13:57:23 -0500 Original-Received: by wwb17 with SMTP id 17so5448270wwb.30 for ; Wed, 22 Dec 2010 10:57:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KRuAjKXJrrQVx7TNklWgiJ7lWMsgxi7Px5ca0G+JbLI=; b=TZLaLX4c8tkIi/UIP9QVMyEs0J4stWVdes6A69H0g/PmDnc1D/wa5ojMn9Prklypw2 4ZIWKYPhlbiO+h8k1d9r02vmm1TActe7eSbGjlkOgujRTV9isX/DQsHhzejdLPCsF+qz 4zgMpFZO1CzlJv1NjA9PuOd17+gijouuttJZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=miblhRWmnbF71mGcaDuuMBX6UYQCpOG3opSrkbzWpIw64jRnKhjbGhdcY/jda8cWN+ NWWObly4p1cWzo7+L/r3MODTErIQ7Az7wdQBsGfAYSgGUKEKOxiilUCfLGst7EPz8F0q p6VCh67c5NHT6asxShVjAEuho+ZKXPPZpxtNY= Original-Received: by 10.227.151.69 with SMTP id b5mr4427959wbw.13.1293044242016; Wed, 22 Dec 2010 10:57:22 -0800 (PST) Original-Received: by 10.227.27.217 with HTTP; Wed, 22 Dec 2010 10:57:21 -0800 (PST) In-Reply-To: <877hf2wzxz.fsf@kuiper.lan.informatimago.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77799 Archived-At: I have added these to my .Xresources. I don't care about matching the color , I just want the emacs window does not resize everytime I resize the window. emacs.geometry: 81x71-68+0 emacs.font: 9x15 emacs.menu.font: 9x15 This is my .emacs about setting my font: ; theme (add-to-list 'load-path "/home/scheung/bin/elisp/color-theme-6.6.0") (load-file "/home/scheung/bin/elisp/color-theme-almost-monokai.el") (require 'color-theme) (eval-after-load "color-theme" '(progn (color-theme-initialize) (color-theme-almost-monokai))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:inherit nil :stipple nil :background "#000000" :foreground "#F8F8F2" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 90 :width normal :foundry "unknown" :family "Droid Sans Mono")))) On Tue, Dec 21, 2010 at 1:58 PM, Pascal J. Bourguignon wrote: > n179911 writes: > >> I am running emacs on ubuntu 10.10. Everytime I start Emacs, the >> application window is big and then resize. >> I assume it is caused by me setting the default font in .emacs file >> (via the emacs menu time, 'Set default face'). >> >> Is there anyway to avoid emacs resize its application windows everytime = I start? > > Before evaluating ~/.emacs, the window manager will create the emacs > frame as indicated by ~/.Xresources ; to avoid any change of size, you > should put the same size (and position) there as in ~/.emacs. > > > emacs.geometry: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 8= 1x71-68+0 > emacs.dialog*.background: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 LightBlue1 > emacs*pane.background: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0LightBl= ue1 > emacs*menu*background: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0LightBl= ue1 > emacs*menubar*background: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 LightBlue1 > emacs*verticalScrollBar.background: =A0 =A0 =A0 =A0 LightBlue1 > emacs*verticalScrollBar.throughColor: =A0 =A0 =A0 LightBlue3 > emacs*background: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Lig= htBlue1 > emacs*foreground: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Dar= kSlateBlue > emacs*pointerColor: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Black > emacs*cursorColor: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Red > emacs*bitmapIcon: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 off > > emacs.font: =A0 =A0 =A0 =A0 6x12 > emacs.menu.font: =A0 =A06x12 > !! emacs.font: =A0 =A0 =A0fixed > > -- > __Pascal Bourguignon__ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://www= .informatimago.com/ > A bad day in () is better than a good day in {}. >