toroidal-code / cycle-themes.el

Because switching between your themes shouldn't be so damn hard
25 stars 9 forks source link

Symbol's function definition is void: first #4

Open patrick-motard opened 5 years ago

patrick-motard commented 5 years ago

This is my ~/.emacs

(require 'doom-themes)
(load-theme 'doom-nord t)
(setq cycle-themes-theme-list
      '(doom-one
    doom-nord
    doom-city-lights
    doom-dracula))
(require 'cycle-themes)
(cycle-themes-mode)

C-c t results in: Symbol's function definition is void: first

I've used spacemacs for 3 years and am finally attempting to write my own configuration. I know a little bit about lisp and emacs, but not enough to know how to debug this. Any tips on how to figure out what could be going on here would be greatly appreciated.

M-x describe-variable RET custom-enabled-themes outputs:

custom-enabled-themes is a variable defined in ‘custom.el’.
Its value is (doom-nord)
Original value was nil

I'm not sure why it says "original value was nil. Is this causing issues with cycle-themes?

I am using package.el if that's important.

patrick-motard commented 5 years ago

Looks like this is caused by a dependency on common lisp not being explicitly stated. cycle-themes should require it but doesn't. Adding the following to my ~/.emacs fixed this issue:

(require 'cl)

Before the code in my original post.

Kingpatzer commented 3 years ago

because 'cl is depreciated, the appropriate fix is to (require 'cl-lib) and to change all occurrences of "first" in the code to cl-first.

buhtz commented 2 years ago

This bug report is quite old. Any progress on this?