From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Re: Maximize frame Date: Thu, 14 May 2009 03:32:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: 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: ger.gmane.org 1242297823 25157 80.91.229.12 (14 May 2009 10:43:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2009 10:43:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 14 12:43:36 2009 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.50) id 1M4YPW-0000Vx-Eq for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 12:43:34 +0200 Original-Received: from localhost ([127.0.0.1]:45880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4YPW-0004m8-2E for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 06:43:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r34g2000vba.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: posting.google.com 1242297160 9007 127.0.0.1 (14 May 2009 10:32:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 14 May 2009 10:32:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r34g2000vba.googlegroups.com; posting-host=84.53.123.169; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.9.0.9) Gecko/2009040820 Firefox/3.0.9,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169154 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:64418 Archived-At: On 14 mei, 10:49, Nurullah Akkaya wrote: > Decebal wrote: > > I would like to maximize my Emacs on startup. I did find: > > =A0 (defun fullscreen () > > =A0 =A0 (interactive) > > =A0 =A0 (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 '(2 "_NET_WM_STATE_FULLSCREEN" = 0))) > > > But that does a fullscreen, which loses the taskbar. Is there a way to > > do a maximize instead of a fullscreen? > > you can use the following function and call it in your .emacs > set the height and width according to your screen. > This works on os x , linux and windows. > > (defun na-resize-frame-big () > =A0 "Set size" > =A0 (interactive) > =A0 (set-frame-width (selected-frame) 178) > =A0 (set-frame-height (selected-frame) 55 ) > =A0 (set-frame-position (selected-frame) 0 1)) I did something like this in the past with my .Xdefaults. But when your screen resolution changes, it does not work anymore. Also I would prefer one .emacs for all my systems and they have different resolutions.