Re: [O] Color theme loading on startup

2015-07-09 Thread Kaushal
Daniel,

I reread your answer.

Looks like to are using the theme package cyberpunk (
https://github.com/n3mo/cyberpunk-theme.el ) which is compatible with
load-theme. I got confused because you used the phrase color theme.

Contrary to what the install instructions say in that theme package's
README page, one should not set the `custom-theme-load-path` variable WHEN
you install the package using the emacs package manager (package.el) and
initialize the packages using `package-initialize`.

If you have set that variable using Customize, erase it using the Customize
interface.

Then `(load-theme 'cyberpunk t nil)` will work.

Check out the below emacs.SE for more detail.

http://emacs.stackexchange.com/a/2113/115

--
Kaushal Modi
On Jul 9, 2015 6:23 AM, Kaushal kaushal.m...@gmail.com wrote:

 Daniel,

 What version of emacs are you on?

 color-theme is a very old style of setting themes. I believe load-theme
 will not work for color themes.

 Check out this recent answer on emacs.SE for more detail:
 http://emacs.stackexchange.com/a/13825/115

 --
 Kaushal Modi
 On Jul 9, 2015 3:44 AM, Daniel Hertrich daniel@daniel-hertrich.photo
 wrote:


  Am 09.07.2015 um 04:45 schrieb Samuel W. Flint swfl...@flintfam.org:
 
  Daniel Hertrich daniel@daniel-hertrich.photo writes:
 
  Hi guys,
 
  quick question, as I don’t really see any root cause for this:
  Whenever I try to load a color theme directly from .emacs using
  load-theme, e.g.
 
  (load-theme 'cyberpunk)
 
  Try ~(load-theme 'cyberpunk t nil)~.  That should work.

 Unfortunately it doesn’t. It has the same effect as without the „t nil“,
 background color is not applied.

 Daniel






Re: [O] Color theme loading on startup

2015-07-09 Thread Daniel Hertrich

 Am 09.07.2015 um 04:45 schrieb Samuel W. Flint swfl...@flintfam.org:
 
 Daniel Hertrich daniel@daniel-hertrich.photo writes:
 
 Hi guys,
 
 quick question, as I don’t really see any root cause for this:
 Whenever I try to load a color theme directly from .emacs using
 load-theme, e.g.
 
 (load-theme 'cyberpunk)
 
 Try ~(load-theme 'cyberpunk t nil)~.  That should work.

Unfortunately it doesn’t. It has the same effect as without the „t nil“, 
background color is not applied.

Daniel





Re: [O] Color theme loading on startup

2015-07-09 Thread Kaushal
Daniel,

What version of emacs are you on?

color-theme is a very old style of setting themes. I believe load-theme
will not work for color themes.

Check out this recent answer on emacs.SE for more detail:
http://emacs.stackexchange.com/a/13825/115

--
Kaushal Modi
On Jul 9, 2015 3:44 AM, Daniel Hertrich daniel@daniel-hertrich.photo
wrote:


  Am 09.07.2015 um 04:45 schrieb Samuel W. Flint swfl...@flintfam.org:
 
  Daniel Hertrich daniel@daniel-hertrich.photo writes:
 
  Hi guys,
 
  quick question, as I don’t really see any root cause for this:
  Whenever I try to load a color theme directly from .emacs using
  load-theme, e.g.
 
  (load-theme 'cyberpunk)
 
  Try ~(load-theme 'cyberpunk t nil)~.  That should work.

 Unfortunately it doesn’t. It has the same effect as without the „t nil“,
 background color is not applied.

 Daniel






[O] Color theme loading on startup

2015-07-08 Thread Daniel Hertrich
Hi guys,

quick question, as I don’t really see any root cause for this:
 
Whenever I try to load a color theme directly from .emacs using load-theme, e.g.

(load-theme 'cyberpunk)

even if I put this line to the end of the .emacs file, the background color of 
the theme is overridden by something and not applied to the look of Emacs. 
If I load the same theme while Emacs is running using 

M-x load-theme RET cyberpunk RET

it looks good. However, using this method I cannot persist the choice across 
sessions.

Any ideas what the reason could be?



Also, there is 

M-x color-theme-select

which lists different themes than load-theme. Is this method better? How to  
load such themes through .emacs correctly?
E.g. I like the theme „Deep Blue“ listed there, but putting 
(color-theme-select ‚deep_blue)
into the .emacs file doesn’t have any effect. However, I don’t know if that’s 
the correct lisp-compatible name of the theme. How to know what it is?
And where are new themes for this method installed to? As far as I understood, 
both methods take different format theme files? 


Thanks!
Daniel



Re: [O] Color theme loading on startup

2015-07-08 Thread Eric S Fraga
On Wednesday,  8 Jul 2015 at 14:08, Daniel Hertrich wrote:
 Hi guys,

 quick question, as I don’t really see any root cause for this:
  
 Whenever I try to load a color theme directly from .emacs using load-theme, 
 e.g.

 (load-theme 'cyberpunk)

[...]

I am not sure what causes the behaviour you see but I can say that I use
the following sequence to set the particular colour theme I want:

(require 'color-theme)
(color-theme-initialize)
(color-theme-blue-sea)

The second line makes all the colour themes available and you can see
them all by M-x color-theme TAB.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1260-gcedef7