From: Ke Lu <lu@luxdo.jp>
To: help-gnu-emacs@gnu.org
Subject: Re: how to set the default size of emacs' window?
Date: Fri, 21 Sep 2007 22:30:13 +0900 [thread overview]
Message-ID: <m3tzpob0yi.fsf@www.luxdo.jp> (raw)
In-Reply-To: <mailman.987.1190141750.18990.help-gnu-emacs@gnu.org> (Peter Dyballa's message of "Tue\, 18 Sep 2007 20\:55\:40 +0200")
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 18.09.2007 um 18:19 schrieb thorne:
>
> --fullheight, -fh make the first
> frame high as the screen
> --fullscreen, -fs make first frame
> fullscreen
> --fullwidth, -fw make the first
> frame wide as the screen
>
> Is there a way to do this such that the window
> dimensions are
> maintained even after the call to `custom-set-faces'
> in my .emacs?
>
> Yes: make that face the default font for GNU Emacs. Then
> all dimensions will be computed on the basis of this
> font's properties. Or use a font a bit smaller than that
> face, so that GNU Emacs is always obscuring the whole
> screen – which also could lead to the effect that the
> echo-area/mini-buffer will lie outside the screen.
>
> --
> Greetings
>
> Pete
>
> If you're not confused, you're not paying attention.
If you are using ntemacs and want to maximize
window,the following can do it.
(when (eq system-type 'windows-nt)
(defun defun-w32-maximum-frame ()
;; Change the current frame size.
(setq w32-frame-maximum nil)
(defun w32-maximize-frame ()
"Maximize the current frame"
(w32-send-sys-command 61488)
(setq w32-frame-maximum t))
(defun w32-restore-frame ()
"Restore the current frame"
(w32-send-sys-command 61728)
(setq w32-frame-maximum nil))
(defun toggle-frame-size ()
"Toggle frame size."
(interactive)
(if w32-frame-maximum
(w32-restore-frame)
(w32-maximize-frame)))
(global-set-key [?\C-\S-z] 'toggle-frame-size)
(add-hook 'after-init-hook 'w32-maximize-frame)
)
)
prev parent reply other threads:[~2007-09-21 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-10 16:45 how to set the default size of emacs' window? rick
2007-09-11 15:24 ` Peter Dyballa
[not found] ` <mailman.708.1189524282.18990.help-gnu-emacs@gnu.org>
2007-09-18 16:19 ` thorne
2007-09-18 18:55 ` Peter Dyballa
[not found] ` <mailman.987.1190141750.18990.help-gnu-emacs@gnu.org>
2007-09-21 13:30 ` Ke Lu [this message]
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=m3tzpob0yi.fsf@www.luxdo.jp \
--to=lu@luxdo.jp \
--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.
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).