Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-28-2010, 07:29 PM   #1
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?


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

(defun Martin theme ()
'(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)
(Martin theme)
Old 12-29-2010, 11:42 AM   #2
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,272

Rep: Reputation: 1456Reputation: 1456Reputation: 1456Reputation: 1456Reputation: 1456Reputation: 1456Reputation: 1456Reputation: 1456Reputation: 1456Reputation: 1456
(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
(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, 07:31 AM   #3
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234

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



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 06:49 PM
Is there the color-theme.el slackware package? sycamorex Slackware 1 04-19-2009 09:16 PM
Emacs's mark set key(ctrl+space) problem. ayiiq180 Linux - Software 1 06-15-2005 11:45 AM
VNC theme color issues sublimusasteris Fedora 3 08-19-2004 08:46 AM
Problem getting installed GNOME theme to show in theme list on RedHat 9.0 linux-fan64 Linux - Newbie 1 02-25-2004 06:16 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:12 PM.

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