New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load spacemacs-theme by use-package #42

Closed
zzp0 opened this Issue Mar 4, 2016 · 6 comments

Comments

Projects
None yet
4 participants
@zzp0

zzp0 commented Mar 4, 2016

(use-package spacemacs-theme
  :config
  (load-theme 'spacemacs-dark t))

Messages buffer shows Cannot load spacemacs-theme
p.s. I just use emacs-mac port without spacemacs kit

@xuchunyang

This comment has been minimized.

Show comment
Hide comment
@xuchunyang

xuchunyang Mar 4, 2016

Contributor

You can use the following instead:

(use-package spacemacs-theme
  :defer t
  :init (load-theme 'spacemacs-dark t))

:defer t will prevent requiring spacemacs-theme, which doesn't exist, :config ... will run some code after spacemacs-theme (a non-existent feature) is required. And since use-package doesn't look very meaningful here, also consider to just use (load-theme 'spacemacs-dark t).

Contributor

xuchunyang commented Mar 4, 2016

You can use the following instead:

(use-package spacemacs-theme
  :defer t
  :init (load-theme 'spacemacs-dark t))

:defer t will prevent requiring spacemacs-theme, which doesn't exist, :config ... will run some code after spacemacs-theme (a non-existent feature) is required. And since use-package doesn't look very meaningful here, also consider to just use (load-theme 'spacemacs-dark t).

@zzp0

This comment has been minimized.

Show comment
Hide comment
@zzp0

zzp0 Mar 4, 2016

@xuchunyang Thank you for your reply. But it didn't work, theme not loading completely, using default theme instead.

zzp0 commented Mar 4, 2016

@xuchunyang Thank you for your reply. But it didn't work, theme not loading completely, using default theme instead.

@xuchunyang

This comment has been minimized.

Show comment
Hide comment
@xuchunyang

xuchunyang Mar 4, 2016

Contributor

theme not loading completely, using default theme instead.

Did you mean something like this?

screen shot 2016-03-04 at 22 18 43

I encounter this if I have desktop-save-mode on and enable spacemacs-dark from init.el but then disable it in Custom Themes (M-x customize-themes).

Contributor

xuchunyang commented Mar 4, 2016

theme not loading completely, using default theme instead.

Did you mean something like this?

screen shot 2016-03-04 at 22 18 43

I encounter this if I have desktop-save-mode on and enable spacemacs-dark from init.el but then disable it in Custom Themes (M-x customize-themes).

@zzp0 zzp0 closed this Mar 5, 2016

@agsdot

This comment has been minimized.

Show comment
Hide comment
@agsdot

agsdot May 13, 2016

@xuchunyang and @zzp0 , I'm finding that

(use-package spacemacs-theme
  :defer t
  :init (load-theme 'spacemacs-dark t))

also doesn't work. @zzp0 did you get it to work in your setup? @xuchunyang I don't have desktop-save-mode in my emacs.d .

I just want to use the spacemacs-theme right now, without using the entire spacemacs .emacs.d config . I like how the spacemancs-theme displays in the terminal, whereas some other themes don't display as nicely (e.g. solarized).

agsdot commented May 13, 2016

@xuchunyang and @zzp0 , I'm finding that

(use-package spacemacs-theme
  :defer t
  :init (load-theme 'spacemacs-dark t))

also doesn't work. @zzp0 did you get it to work in your setup? @xuchunyang I don't have desktop-save-mode in my emacs.d .

I just want to use the spacemacs-theme right now, without using the entire spacemacs .emacs.d config . I like how the spacemancs-theme displays in the terminal, whereas some other themes don't display as nicely (e.g. solarized).

@agsdot

This comment has been minimized.

Show comment
Hide comment
@agsdot

agsdot May 13, 2016

Nevermind. I accidentally was applying two themes at the same time. Later on in my .emacs.d, I was applying another theme. Sorry, @xuchunyang , your original code suggestion works just fine. Thanks!

agsdot commented May 13, 2016

Nevermind. I accidentally was applying two themes at the same time. Later on in my .emacs.d, I was applying another theme. Sorry, @xuchunyang , your original code suggestion works just fine. Thanks!

@swarnendubiswas

This comment has been minimized.

Show comment
Hide comment
@swarnendubiswas

swarnendubiswas Jul 31, 2016

Another option is:

(use-package spacemacs-common
    :ensure spacemacs-theme
    :config (load-theme 'spacemacs-light t))

swarnendubiswas commented Jul 31, 2016

Another option is:

(use-package spacemacs-common
    :ensure spacemacs-theme
    :config (load-theme 'spacemacs-light t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment