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

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

Re: Maximize frame


From: Nurullah Akkaya
Subject: Re: Maximize frame
Date: Thu, 14 May 2009 11:49:41 +0300
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

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/




reply via email to

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