From: Mario Valencia <mariovalspi@gmail.com>
To: 20110@debbugs.gnu.org
Subject: bug#20110: maximize emacs at startup
Date: Sun, 15 Mar 2015 08:53:40 -0600 [thread overview]
Message-ID: <CA+3HrJV2om831Ax-D9Ww4OF+6ra+d70+A1ZV6u1tuyCFsD0t=w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
The following, taken from the emacs faq, doesn't work:
(add-hook 'emacs-startup-hook
(lambda () (w32-send-sys-command ?\xF030)))
I ran emacs with only this code in the init file. It appears to maximize
the window then resizes it again.
But the following does work:
(add-hook 'emacs-startup-hook 'toggle-frame-maximized)
This is on windows 8 with version
*GNU Emacs 24.4.1 (i686-pc-mingw32)*
* of 2014-10-24 on LEG570*
I also tried window-setup-hook. Didn't work. Note that the code that uses
w32-send-sys-command works fine if i evaluate it with C-x C-e.
[-- Attachment #2: Type: text/html, Size: 829 bytes --]
next reply other threads:[~2015-03-15 14:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-15 14:53 Mario Valencia [this message]
2015-03-15 19:20 ` bug#20110: maximize emacs at startup martin rudalics
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+3HrJV2om831Ax-D9Ww4OF+6ra+d70+A1ZV6u1tuyCFsD0t=w@mail.gmail.com' \
--to=mariovalspi@gmail.com \
--cc=20110@debbugs.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).