From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nurullah Akkaya Newsgroups: gmane.emacs.help Subject: Re: Maximize frame Date: Thu, 14 May 2009 11:49:41 +0300 Organization: http://nakkaya.com Message-ID: <4A0BDB25.8080502@nakkaya.com> References: Reply-To: nurullah@nakkaya.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242291151 4582 80.91.229.12 (14 May 2009 08:52:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2009 08:52:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 14 10:52:23 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 1M4Wfu-0003Qm-PV for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 10:52:23 +0200 Original-Received: from localhost ([127.0.0.1]:49728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4Wft-00029T-KQ for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 04:52:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4WfV-00029O-Lo for help-gnu-emacs@gnu.org; Thu, 14 May 2009 04:51:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4WfT-00029C-KP for help-gnu-emacs@gnu.org; Thu, 14 May 2009 04:51:56 -0400 Original-Received: from [199.232.76.173] (port=47203 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4WfT-000299-F8 for help-gnu-emacs@gnu.org; Thu, 14 May 2009 04:51:55 -0400 Original-Received: from yw-out-1718.google.com ([74.125.46.155]:54703) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4WfT-0006zv-5I for help-gnu-emacs@gnu.org; Thu, 14 May 2009 04:51:55 -0400 Original-Received: by yw-out-1718.google.com with SMTP id 5so646200ywm.66 for ; Thu, 14 May 2009 01:51:53 -0700 (PDT) Original-Received: by 10.100.32.6 with SMTP id f6mr2827563anf.143.1242291112897; Thu, 14 May 2009 01:51:52 -0700 (PDT) Original-Received: from blackHole.local ([93.182.64.13]) by mx.google.com with ESMTPS id b37sm3484021ana.33.2009.05.14.01.51.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 May 2009 01:51:52 -0700 (PDT) User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) In-Reply-To: X-Enigmail-Version: 0.95.7 X-detected-operating-system: by monty-python.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:64415 Archived-At: Decebal wrote: > I would like to maximize my Emacs on startup. I did find: > (defun fullscreen () > (interactive) > (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 > '(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 () "Set size" (interactive) (set-frame-width (selected-frame) 178) (set-frame-height (selected-frame) 55 ) (set-frame-position (selected-frame) 0 1)) -- Nurullah Akkaya http://nakkaya.com/