I'm not 100% sure this would fix your problem, but you really should be using color-theme for syntax highlighting. Custom is meant for beginning emacs users, so I'd suggest you try out color-theme and see if it works. Here's how I have it set up on my machine:
- Download the package from the color-theme homepage.
- Put the color-theme folder somewhere like
~/.emacs.d/color-theme/
.
- Make sure this folder is in your load-path. I took the following code from a Steve Yegge post:
In your .emacs:
(defvar emacs-root "~/.emacs.d/")
(labels
((add-path
(p)
(add-to-list
'load-path
(concat emacs-root p))))
(add-path "lisp")
(add-path "color-theme-6.6.0")
(add-path "cedet-1.0"))
(require 'color-theme)
Then you define your color theme:
;; Color-theme
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
;; Set custom color theme
(defun color-theme-mine ()
"My custom color theme"
(interactive)
(set-cursor-color "#ffffff")
(color-theme-install
'(color-theme-mine
;; Super-light grey on Dark grey
((foreground-color . "#e0e0e0")
(background-color . "#151515")
(background-mode . dark))
(font-lock-comment-face ((t (:foreground "#106010")))) ;; Forest Green
;; More definitions below
;; ...
(color-theme-mine)) ;; end eval-after-load
This will load color-them-mine
when you start emacs. You can see all available color themes by typing M-x color-theme <TAB>
. To see the full list of faces available, use the command M-x list-faces-display
.
M-x customize-face RET default
to bring up the default face. The values there seem to have been left unchanged. If I change them, then save for all sessions, I can launch new client windows which use the settings. If, however, I restart the emacs daemon, I get the usual error. Strange, because all that editing the faces seems to do is edit .emacs so that it contains the new settings. – Henka