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 set 'exec-path-from-shell-variables before the initialization #116

Open
arademaker opened this issue Jan 4, 2024 · 1 comment

Comments

@arademaker
Copy link

Warning (initialization): An error occurred while loading ‘/Users/ar/.emacs.d/init.el’:
Symbol's value as variable is void: exec-path-from-shell-variables

But I am following the README suggestion:

(dolist (var '(...))
  (add-to-list 'exec-path-from-shell-variables var))

(when (memq window-system '(mac ns x))
  (exec-path-from-shell-initialize))
@purcell
Copy link
Owner

purcell commented Jan 4, 2024

You'd need to (require 'exec-path-from-shell) first in order to modify the variables defined in the library. Functions are different, because they can be autoloaded, e.g. calling exec-path-from-shell-initialize triggers the loading of the library if necessary.

purcell added a commit that referenced this issue Jan 4, 2024
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

2 participants