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

error when loading .emacs.d/init.el #4

Open
cmal opened this issue Oct 31, 2016 · 1 comment
Open

error when loading .emacs.d/init.el #4

cmal opened this issue Oct 31, 2016 · 1 comment

Comments

@cmal
Copy link

cmal commented Oct 31, 2016

Debugger entered--Lisp error: (void-function --each)
  (--each packages (if (not (package-installed-p it)) (progn (package-install it))))
  packages-install((....
init--install-packages()

I've tried this on mac(GNU Emacs 25.1.1) and linux(GNU Emacs 24.5), both got the same error.

I tried the method on bbatsov/prelude#312 ,
to delete all elc files and recompile. After restart emacs on my mac, it shows:

Debugger entered--Lisp error: (void-variable it)
  packages-install((...
init--install-packages()

both errors refer to the same function packages-install.

It seems Emacs does not recognize the --each...it iteration.

@cmal
Copy link
Author

cmal commented Oct 31, 2016

I solved this by changing --each to dolist
(--each packages ==> (dolist (it packages)

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

1 participant