unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joe Fineman <joe_f@verizon.net>
To: help-gnu-emacs@gnu.org
Subject: Can't set font & frame properly in .emacs
Date: Sat, 27 Dec 2008 10:02:01 -0500	[thread overview]
Message-ID: <u4p0p4q6u.fsf@verizon.net> (raw)

I run Emacs under (sigh) Windows XP.  Before I upgraded to Emacs
22.3.1, the following near the beginning of my .emacs file always had
the right effect:

----------------------------------------------------------------------
;;;;INITIAL SETUP

(setq inhibit-default-init t)

(defun minimize-frame ()
  (interactive)
(w32-send-sys-command #xf020))
             
(defun maximize-frame ()
  (interactive)
(w32-send-sys-command #xf030))
             
(defun restore-frame ()
  (interactive)
(w32-send-sys-command #xf120))

(defun screen-saver ()
  (interactive)
(w32-send-sys-command #xf140))
             
;; start Emacs maximized
(maximize-frame)

;; Font
;; For a list of available Fonts, eval
;; (insert (prin1-to-string (x-list-fonts "*")))
(set-default-font "-outline-Courier New-normal-r-normal-normal-*-*-96-96-c-*-iso8859-13")

;; Set rows and columns correctly
(set-frame-width (selected-frame) 155)
;; This is where height on screen is finally set:
(set-frame-height (selected-frame) 63) ;changed from 62 07oc08
----------------------------------------------------------------------

Now, however, the startup seems to skip it.  The defuns are not
evaluated (tho I can eval them by hand & they work).  The frame does
not come up maximized, and the point size is too big.  I added the
first line in case there was a default-init lurking somewhere.  I
tried repeating this section at the end of .emacs in case something in
between was undoing it.  I could find nothing about this aspect
initialization using info, and I cannot remember where I got the
present code -- probably from some long-departed helpful soul on a
newsgroup.

What has changed?

Thank you for your attention.
-- 
---  Joe Fineman    joe_f@verizon.net

||:  War propaganda always makes intelligent people sympathize  :||
||:  with the enemy.                                            :||


             reply	other threads:[~2008-12-27 15:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-27 15:02 Joe Fineman [this message]
2008-12-28 20:06 ` Can't set font & frame properly in .emacs Joe Fineman
2008-12-30 16:21   ` Can't set font & frame properly in .emacs: some answers Joe Fineman
  -- strict thread matches above, loose matches on Subject: below --
2008-12-29 17:16 Can't set font & frame properly in .emacs 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=u4p0p4q6u.fsf@verizon.net \
    --to=joe_f@verizon.net \
    --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).