* Finding color-theme in .emacs.d
@ 2008-09-11 13:04 Eric Lilja
2008-09-11 17:30 ` Eric Lilja
[not found] ` <mailman.19039.1221154250.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: Eric Lilja @ 2008-09-11 13:04 UTC (permalink / raw)
To: help-gnu-emacs
Hello, I encountered a problem when I tried to move my color-theme
directory to ~/.emacs.d (can't wait for color-theme to be included in
the official emacs btw).
I have this in my .emacs-file:
(add-to-list 'load-path "~/color-theme")
(require 'color-theme)
(color-theme-initialize)
(color-theme-clarity)
which works fine when color-theme is directly under ~
However, if I move it to ~/.emacs.d and update the snippet accordingly:
(add-to-list 'load-path "~/.emacs.d/color-theme")
(require 'color-theme)
(color-theme-initialize)
(color-theme-clarity)
It cannot be found, why? I should place third party modes under
.emacs.d, right? At least that's what the wiki says. :)
I'm using emacs trunk, checkout is a few days old.
- Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Finding color-theme in .emacs.d
2008-09-11 13:04 Finding color-theme in .emacs.d Eric Lilja
@ 2008-09-11 17:30 ` Eric Lilja
2008-09-11 18:58 ` Allan Gottlieb
[not found] ` <mailman.19039.1221154250.18990.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 4+ messages in thread
From: Eric Lilja @ 2008-09-11 17:30 UTC (permalink / raw)
To: help-gnu-emacs
Eric Lilja wrote:
> Hello, I encountered a problem when I tried to move my color-theme
> directory to ~/.emacs.d (can't wait for color-theme to be included in
> the official emacs btw).
>
> I have this in my .emacs-file:
> (add-to-list 'load-path "~/color-theme")
> (require 'color-theme)
> (color-theme-initialize)
> (color-theme-clarity)
>
> which works fine when color-theme is directly under ~
>
> However, if I move it to ~/.emacs.d and update the snippet accordingly:
> (add-to-list 'load-path "~/.emacs.d/color-theme")
> (require 'color-theme)
> (color-theme-initialize)
> (color-theme-clarity)
>
> It cannot be found, why? I should place third party modes under
> .emacs.d, right? At least that's what the wiki says. :)
>
> I'm using emacs trunk, checkout is a few days old.
>
> - Eric
>
>
>
>
OK, not a single reply so far. But could someone at least if it's
supposed to work or not?
- Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Finding color-theme in .emacs.d
[not found] ` <mailman.19039.1221154250.18990.help-gnu-emacs@gnu.org>
@ 2008-09-11 18:32 ` Scott Frazer
0 siblings, 0 replies; 4+ messages in thread
From: Scott Frazer @ 2008-09-11 18:32 UTC (permalink / raw)
To: help-gnu-emacs
Eric Lilja wrote:
> Eric Lilja wrote:
>> Hello, I encountered a problem when I tried to move my color-theme
>> directory to ~/.emacs.d (can't wait for color-theme to be included in
>> the official emacs btw).
>>
>> I have this in my .emacs-file:
>> (add-to-list 'load-path "~/color-theme")
>> (require 'color-theme)
>> (color-theme-initialize)
>> (color-theme-clarity)
>>
>> which works fine when color-theme is directly under ~
>>
>> However, if I move it to ~/.emacs.d and update the snippet accordingly:
>> (add-to-list 'load-path "~/.emacs.d/color-theme")
>> (require 'color-theme)
>> (color-theme-initialize)
>> (color-theme-clarity)
>>
>> It cannot be found, why? I should place third party modes under
>> .emacs.d, right? At least that's what the wiki says. :)
>>
>> I'm using emacs trunk, checkout is a few days old.
>>
>
> OK, not a single reply so far. But could someone at least if it's
> supposed to work or not?
>
What doesn't work, the require or the color-theme-blah?
I'm guessing the color-theme-libraries variable is probably pointing
to the wrong place (i.e. still at ~/color-theme when you compiled it
the first time). Try changing that variable to the right thing (or
maybe byte-compile the package again in it's new place).
Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Finding color-theme in .emacs.d
2008-09-11 17:30 ` Eric Lilja
@ 2008-09-11 18:58 ` Allan Gottlieb
0 siblings, 0 replies; 4+ messages in thread
From: Allan Gottlieb @ 2008-09-11 18:58 UTC (permalink / raw)
To: help-gnu-emacs
At Thu, 11 Sep 2008 19:30:28 +0200 Eric Lilja <mindcooler@gmail.com> wrote:
> Eric Lilja wrote:
>> Hello, I encountered a problem when I tried to move my color-theme
>> directory to ~/.emacs.d (can't wait for color-theme to be included
>> in the official emacs btw).
>>
>> I have this in my .emacs-file:
>> (add-to-list 'load-path "~/color-theme")
>> (require 'color-theme)
>> (color-theme-initialize)
>> (color-theme-clarity)
>>
>> which works fine when color-theme is directly under ~
>>
>> However, if I move it to ~/.emacs.d and update the snippet accordingly:
>> (add-to-list 'load-path "~/.emacs.d/color-theme")
>> (require 'color-theme)
>> (color-theme-initialize)
>> (color-theme-clarity)
>>
>> It cannot be found, why? I should place third party modes under
>> .emacs.d, right? At least that's what the wiki says. :)
I have it in /usr/share/emacs/site-lisp, which is already in
load-path.
In my .emacs I have
;; Non-std locations for elisp code
;;
(setq load-path (append (list "/allan/gottlieb/share/emacs/") load-path))
(if (file-exists-p "/usr/share/emacs/site-lisp/site-gentoo.el")
(load "/usr/share/emacs/site-lisp/site-gentoo"))
and
;; Fancy colors
;; Use my own color-theme, starting with `dark-laptop'
(require 'color-theme)
(color-theme-initialize)
(load-file "/allan/gottlieb/.emacs.d/ajg-color-theme-library.el")
(color-theme-dark-laptop)
>> I'm using emacs trunk, checkout is a few days old.
I use both emacs-22 (22.1) and emacs-23 (23.0.60) with the setup
above.
allan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-11 18:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 13:04 Finding color-theme in .emacs.d Eric Lilja
2008-09-11 17:30 ` Eric Lilja
2008-09-11 18:58 ` Allan Gottlieb
[not found] ` <mailman.19039.1221154250.18990.help-gnu-emacs@gnu.org>
2008-09-11 18:32 ` Scott Frazer
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).