Skip to content
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

Symbol's function definition is void: first #4

Open
patrick-motard opened this issue Aug 11, 2019 · 3 comments
Open

Symbol's function definition is void: first #4

patrick-motard opened this issue Aug 11, 2019 · 3 comments

Comments

@patrick-motard
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

buhtz commented Nov 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants