LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-28-2010, 06:29 PM   #1
ArthurHuang
Member
 
Registered: Jan 2006
Posts: 174

Rep: Reputation: 30
Emacs's color theme installation problem


Hi there:
I extract color theme under ~/bin, and my .emacs file is as below:
However, there is an error when loading color theme.

Does anyone knows how to solve this problem?

Thanks!
;;=======================================================================

(add-to-list 'load-path "~/bin/color-theme-6.6.0")
(require 'color-theme)
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
(color-theme-charcoal-black)))

(defun Martin theme ()
(interactive)
(color-theme-install
'(Martin theme
((background-color . "#3e4041")
(background-mode . light)
(border-color . "#404040")
(cursor-color . "#ffffff")
(foreground-color . "#ffffff")
(mouse-color . "black"))
(fringe ((t (:background "#404040"))))
(mode-line ((t (:foreground "#000000" :background "#bfbfbf"))))
(region ((t (:background "#606048"))))
(font-lock-builtin-face ((t (:foreground "#e05759"))))
(font-lock-comment-face ((t (:foreground "#68d4bb"))))
(font-lock-function-name-face ((t (:foreground "#c1dbf6"))))
(font-lock-keyword-face ((t (:foreground "#c7ddf5"))))
(font-lock-string-face ((t (:foreground "#bd283c"))))
(font-lock-type-face ((t (:foreground"#64e944"))))
(font-lock-variable-name-face ((t (:foreground "#53ee5c"))))
(minibuffer-prompt ((t (:foreground "#93c5fb" :bold t))))
(font-lock-warning-face ((t (:foreground "Red" :bold t))))
)))
(provide 'Martin theme)

(require 'color-theme)
(color-theme-initialize)
(Martin theme)
 
Old 12-29-2010, 10:42 AM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,446

Rep: Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829
Code:
(defun Martin theme ()
You can't have a space in a function (or symbol name), replace all uses of "Martin theme" with "Martin-theme" ie
Code:
(defun Martin-theme ()
PS please put your code in [code][/code] tags to preserve indentation and make it easier to read. Also, it usually helps to post the exact error message, for Emacs it will be in the *Messages* buffer.
 
Old 12-30-2010, 06:31 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Arthur,

I think you clicked the "Report" button instead of the "Quote" by mistake. You may want to try again.
 
  


Reply

Tags
emacs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
theme installation problem hoosierfan24 Linux - Newbie 5 05-20-2009 05:49 PM
Is there the color-theme.el slackware package? sycamorex Slackware 1 04-19-2009 08:16 PM
Emacs's mark set key(ctrl+space) problem. ayiiq180 Linux - Software 1 06-15-2005 10:45 AM
VNC theme color issues sublimusasteris Fedora 3 08-19-2004 07:46 AM
Problem getting installed GNOME theme to show in theme list on RedHat 9.0 linux-fan64 Linux - Newbie 1 02-25-2004 05:16 PM


All times are GMT -5. The time now is 02:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration