help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When loading an elisp file within Emacs, color-theme changes


From: Dylan Mikus
Subject: When loading an elisp file within Emacs, color-theme changes
Date: Thu, 26 May 2011 22:16:55 -0400

I'm using the "color-theme-6.6.0" library, and I the following code to 
initialize my color theme:

------------------------------------------------------------------------------------------
;;; This was installed by package-install.el.                                   
                                                                                
                                                                                
                                   
;;; This provides support for the package system and                            
                                                                                
                                                                                
                                   
;;; interfacing with ELPA, the package archive.                                 
                                                                                
                                                                                
                                   
;;; Move this code earlier if you want to reference                             
                                                                                
                                                                                
                                   
;;; packages in your .emacs.                                                    
                                                                                
                                                                                
                                   
(when                                                                           
                                                                                
                                                                                
                                   
    (load                                                                       
                                                                                
                                                                                
                                   
     (expand-file-name "~/.emacs.d/elpa/package.el"))                           
                                                                                
                                                                                
                                   
  (package-initialize))                                                         
                                                                                
                                                                                
                                   
                                                                                
                                                                                
                                                                                
                                   
                                                                                
                                                                                
                                                                                
                                   
;; Configuring file location for M-x customize*                                 
                                                                                
                                                                                
                                   
(setq custom-file "~/.emacs.d/emacs-custom.el")                                 
                                                                                
                                                                                
                                   
(load custom-file 'noerror)                                                     
                                                                                
                                                                                
                                   
                                                                                
                                                                                
                                                                                
                                   
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;          
                                                                                
                                                                                
                                   
(add-to-list 'load-path "~/.emacs.d/color-theme-6.6.0")                         
                                                                                
                                                                                
                                   
(require 'color-theme)                                                          
                                                                                
                                                                                
                                   
(eval-after-load "color-theme"                                                  
                                                                                
                                                                                
                                   
  '(progn                                                                       
                                                                                
                                                                                
                                   
     (color-theme-initialize)                                                   
                                                                                
                                                                                
                                   
     (color-theme-hober)                                                        
                                                                                
                                                                                
                                   
;    (color-theme-standard)                                                     
                                                                                
                                                                                
                                   
;    (color-theme-clarity)                                                      
                                                                                
                                                                                
                                   
;    (color-theme-euphoria)                                                     
                                                                                
                                                                                
                                   
    ))                                                                          
                                                                                
                                                                                
                                   
                                                                                
                                                                                
                                                                                
                                   
; Cool themes                                                                   
                                                                                
                                                                                
                                   
; clarity                                                                       
                                                                                
                                                                                
                                   
; euphoria
------------------------------------------------------------------------------------------


Notably, only the part after the sequence of ;'s matters. When I first load 
Emacs from terminal, the color scheme shows up fine, but when I run "load-file 
~/.emacs.d", which calls the above code, the mode bar at the bottom and any 
divide bars for windows turn to light blue (previously from grayish-white), and 
the read-only text in the mini-buffer changes color to a dark purple 
(previously light-blue, as defined in my default terminal colors).

I really don't know too much about the color-theme library. Do any of you guys 
know of a general reason for why this would happen when I reload the same code?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]