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

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

Re: Maximize frame


From: Decebal
Subject: Re: Maximize frame
Date: Thu, 14 May 2009 03:32:39 -0700 (PDT)
User-agent: G2/1.0

On 14 mei, 10:49, Nurullah Akkaya <nurul...@nakkaya.com> wrote:
> 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))

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.


reply via email to

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