Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3357322
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:37:08+00:00 2026-05-18T02:37:08+00:00

Just got a new Windows laptop, installing emacs23 on it. My previous computers have

  • 0

Just got a new Windows laptop, installing emacs23 on it.

My previous computers have used emacs 22 for I-don’t-know-how-long.

I have a longish emacs.el, which loads various side elisp libraries. I had everything set up just so, in emacs 22.

I brought this emacs.el over to the new pc, along with all the other elisp modules. Started emacs, and everything looks good. There’s just one weird issue.

Near the top of the emacs.el, I do:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; basic, default colors

(set-face-foreground 'default "white")
(set-face-background 'default "black")

This makes the background black, and the foreground white (white-on-black). This is the opposite of what a default install of emacs on Windows will do.

While the rest of emacs.el is loading, I can see that these colors are in effect. It’s just a blank Window, not even the scratch buffer is displayed. All I See is the message at the bottom of the window updating me on the progress of the load. (For some reason loading is much slower – I think I have some uncompiled .el libraries – I’ll have to investigate that separately). Even so, it is a black window. (Without those statements in emacs.el, the window remains white.) Anyway, everything loads, then the screen reverts to black-on-white, rather than white-on-black.

The weird part is all the other fonts I’ve set, seem to “stick”. Fonts like comment fonts, string fonts, function-names and so on in cc-mode… these all remain. Only the default foreground and background fonts don’t “stick”.

I guessed that maybe something in the stack of elisp modules was maybe resetting these fonts. So I duplicated those two statements (from above) at the very end of the emacs.el file. Still, though, the fonts get reverted.

If I then eval those statements in the scratch buffer after everything has loaded, then the fonts look as I expect – white-on-black.

Is there something different about how emacs23 does default fonts?
Why does it revert?
Why can I not get these settings to “stick” when evaluated from emacs.el?

Thanks for any help y’all can offer.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:37:09+00:00Added an answer on May 18, 2026 at 2:37 am

    Found it. I also had in the emacs.el, this code:

    (setq default-frame-alist
      '((top . 10) (left . 860)
        (width . 100) (height . 28)
        (cursor-color . "Blue")
        (cursor-type . box)
        (foreground-color . "White")
        (background-color . "Black")
        (mouse-color . "sienna3")
        (font . "-*-Lucida Console-normal-r-*-*-11-82-96-96-c-*-iso8859-1")
        )
      )
    

    … which contradicted the set-face-foreground thing.

    So I commented out the lines for foreground-color and background-color there, and it started up the way I like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just got a new work PC from running Windows 7. I have
I have just got a new machine running Windows 7. I have installed Delphi7
Ok so I just got a new SSD for my laptop. I have installed
I just got my self a new laptop, it runs on windows 7 and
I have an existing application (with MySQL DB). I just got a new requirement
We just got a new Windows 2008 R2 server and I am trying to
I just got a new windows server 2008 dedicated server and I can't for
I just got a new PC with Windows 7. While editing a WPF window,
just got a couple of new PanelPC's running Windows Embedded 2009 that we are
I just got a new PC running Windows 7 (64-bit). I'd like to install

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.