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

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

Re: Trying to install color-theme on emacs 23.1


From: Dan Davison
Subject: Re: Trying to install color-theme on emacs 23.1
Date: Sat, 03 Apr 2010 08:37:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

hap 497 <address@hidden> writes:

> Hi,
>
> I have compiled emacs 23.1 on ubuntu. And I am trying to color-theme
> (6.6.0) from
> http://www.nongnu.org/color-theme/#sec5
>
> I have copied color-theme.el to ~/bin and have added these .emacs
> ; theme
> (load-file "/home/hap/bin/color-theme.el")
> (require 'color-theme)

Hi Hap,

I don't think you have followed the installation instructions correctly
(to be fair, they're not very clear on the webpage you linked to). It's
not enough to copy just color-theme.el, you need the entire
color-theme-6.6.0 directory. So get rid of ~/bin/color-theme.el and put
the whole directory in ~/bin and use

(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)))

Dan


>
> But I get this error when i run emacs -debug-init:
>
> Í‚Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   file-name-directory(nil)
>   (concat (file-name-directory (locate-library "color-theme")) "/themes")
>   (directory-files (concat (file-name-directory ...) "/themes") t
> "^color-theme")
>   eval((directory-files (concat (file-name-directory ...) "/themes") t
> "^color-theme"))
>   custom-initialize-reset(color-theme-libraries (directory-files
> (concat (file-name-directory ...) "/themes") t "^color-theme"))
>   custom-declare-variable(color-theme-libraries (directory-files
> (concat (file-name-directory ...) "/themes") t "^color-theme") "A list
> of files, which will be loaded in color-theme-initialize depending\non
> `color-theme-load-all-themes' value. \nThis allows a user to prune the
> default color-themes (which can take a while\nto load)." :type (repeat
> string) :group color-theme)
>   (defcustom color-theme-libraries (directory-files (concat ...
> "/themes") t "^color-theme") "A list of files, which will be loaded in
> color-theme-initialize depending\non `color-theme-load-all-themes'
> value. \nThis allows a user to prune the default color-themes (which
> can take a while\nto load)." :type (quote (repeat string)) :group
> (quote color-theme))
>   eval-buffer(#<buffer  *load*<2>> nil "/home/hap/bin/color-theme.el"
> nil t)  ; Reading at buffer position 8867
>   load-with-code-conversion("/home/hap/bin/color-theme.el"
> "/home/hap/bin/color-theme.el" nil nil)
>
> I have attached the color-theme.el.
>
> Can you please tell me how can I fix my problem?
>
> Thank you.




reply via email to

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