Closed shackra closed 5 years ago
Maybe when Emacs runs, its value for $SHELL
isn't zsh
, so it's not actually running a shell which looks at ~/.zshenv
?
You can enable exec-path-from-shell-debug
for more info.
I noticed that the variable for debugging was always nil
, so I did some changes in my configuration and was a logic error from my part, the following changes in my configuration made everything work as intended:
- (when (memq window-system '(mac ns x))
+ (unless (memq system-type '(ms-dos windos-nt cygwin))
+ (require 'exec-path-from-shell)
(exec-path-from-shell-initialize))
I use Arch Linux, with the systemd unit for users provided by the Arch maintainer of the Emacs package
exec-path-from-shell-initialize
is ran once by theafter-init-hook
, providing the following value for thePATH
copy in Emacs:The problem is that some paths are missing here. The current value of
PATH
is the following (from~/.zshenv
):I need to open a frame and run
M-x exec-path-from-shell-initialize
to get the PATH variable right:Honestly I don't know where the issue is...