unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: hap 497 <hap497@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Trying to install color-theme on emacs 23.1
Date: Sat, 03 Apr 2010 08:37:57 -0400	[thread overview]
Message-ID: <87tyrsemoq.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <q2y5ff1d48c1004012253n5b3dcf42mde27e5a3436070e2@mail.gmail.com> (hap's message of "Thu, 1 Apr 2010 23:53:00 -0600")

hap 497 <hap497@gmail.com> 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.




      parent reply	other threads:[~2010-04-03 12:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-02  5:53 Trying to install color-theme on emacs 23.1 hap 497
2010-04-02 22:35 ` Henri-Paul Indiogine
2010-04-03  4:42   ` hap 497
2010-04-03 15:57     ` Henri-Paul Indiogine
2010-04-03 12:37 ` Dan Davison [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tyrsemoq.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=hap497@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).