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 8694961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:54:49+00:00 2026-06-13T00:54:49+00:00

I installed emacs, created a .emacs.d directory and made an init.el file: (require ‘package)

  • 0

I installed emacs, created a .emacs.d directory and made an init.el file:

(require 'package)                                                              
(add-to-list 'package-archives                                                  
             '("melpa" . "http://melpa.milkbox.net/packages/") t)               
(package-initialize)                                                            

(when (not package-archive-contents)                                            
  (package-refresh-contents))                                                   

(defvar my-packages                                                             
  '(starter-kit                                                                 
    starter-kit-bindings                                                        
    starter-kit-lisp                                                            
    clojure-mode                                                                
    color-theme                                                                 
    nrepl))                                                                     

(dolist (p my-packages)                                                         
  (when (not (package-installed-p p))                                           
    (package-install p)))                                                       

(require 'color-theme)                                                          
(color-theme-initialize)                                                        
(color-theme-charcoal-black)                                                    
(color-theme-install-frame-params '((background-color . "black")))              

When I open emacs, I end up with the color-theme-charcoal-black colors, with its default gray background. If I open init.el and eval-buffer, the background goes black as desired.

How can I get that affect without needing to eval-buffer?

I also tried:

(add-hook 'after-init-hook 
          '(lambda () (color-theme-install-frame-params 
                       '((background-color . "black"))))

Similar to this question:
https://superuser.com/questions/481793/permanently-override-background-colour-of-emacs-theme

  • 1 1 Answer
  • 0 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-06-13T00:54:50+00:00Added an answer on June 13, 2026 at 12:54 am

    Well, that’s not the way to set up a theme in Emacs 24, but you could patch the old one to work like the new one.
    Here’s an example of a theme I’ve made for myself, but you could just take the one that you like and replace the values. I’ve not finished this one yet, but it is close to be finished 🙂

    After you’ve done, save the file into ~/.emacs.d/themes/charcoal-black-theme.el

    and in your .emacs:

    (add-to-list 'custom-theme-load-path (expand-file-name "~/.emacs.d/themes/"))
    (setq custom-enabled-themes '(charcoal-black))
    

    after you’ve done so, Emacs will ask you whether you want to permanently add the themes directory and the theme to enabled themes. If you answer positively, it will append some code to the (custom-set-variables ...)

    The example theme follows:

    http://pastebin.com/S2BHmd5s

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

Sidebar

Related Questions

I installed haskel-mode in emacs. Then I write in my .emacs: (load ~/.emacs.d/haskell-mode/haskell-site-file) (add-hook
I have installed several Emacs packages by M-x install-package . The starter-kit package hide
I have installed some Emacs packages such as the starter-kit using M-x package-install .
I installed haml-mode in my Emacs follow this article http://www.emacswiki.org/emacs/HamlMode There is my code
I'm attempting to install ace-jump-mode for emacs 24.1.50.1. I've installed it with M-x package-install,
I just installed Emacs on my mac from here: http://emacsformacosx.com/ and that got rid
I have installed the package to display line number in emacs. However, each time
I have GNU Emacs 23 (package emacs23 ) installed on an Ubuntu 10.04 desktop
I have ECB installed and autostarted in emacs: (require 'semantic/analyze) (provide 'semantic-analyze) (provide 'semantic-ctxt)
I installed emacs 24.1 and dictionary.el, which is a dictd client plugin for emacs.

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.