all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Decebal <CLDWesterhof@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Maximize frame
Date: Thu, 14 May 2009 03:32:39 -0700 (PDT)	[thread overview]
Message-ID: <cd3d8e8b-9052-4474-b530-5b4867412d3e@r34g2000vba.googlegroups.com> (raw)
In-Reply-To: mailman.7143.1242291118.31690.help-gnu-emacs@gnu.org

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.


  parent reply	other threads:[~2009-05-14 10:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14  7:44 Maximize frame Decebal
2009-05-14  8:36 ` Pascal J. Bourguignon
2009-05-14 10:30   ` Decebal
2009-05-14  8:49 ` Nurullah Akkaya
     [not found] ` <mailman.7143.1242291118.31690.help-gnu-emacs@gnu.org>
2009-05-14 10:32   ` Decebal [this message]
2009-05-14 11:26     ` Lennart Borgman
     [not found]     ` <mailman.7148.1242300429.31690.help-gnu-emacs@gnu.org>
2009-05-14 12:07       ` Decebal
2009-05-14 12:33       ` Pascal J. Bourguignon
2009-05-14 13:25         ` Lennart Borgman
2009-05-14 11:39 ` Michael Heerdegen
2009-05-14 12:03   ` Decebal
2009-05-14 12:14     ` Decebal
2009-05-14 12:37       ` Pascal J. Bourguignon
2009-05-14 13:52         ` Richard Riley
2009-05-14 13:20       ` Decebal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd3d8e8b-9052-4474-b530-5b4867412d3e@r34g2000vba.googlegroups.com \
    --to=cldwesterhof@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.