cycle-themes.el icon indicating copy to clipboard operation
cycle-themes.el copied to clipboard

Symbol's function definition is void: first

Open patrick-motard opened this issue 6 years ago • 3 comments

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 avatar Aug 11 '19 01:08 patrick-motard

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.

patrick-motard avatar Aug 11 '19 06:08 patrick-motard

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.

Kingpatzer avatar Jul 19 '21 21:07 Kingpatzer

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

buhtz avatar Nov 08 '21 19:11 buhtz