Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [exec-path]

The tag has no usage guidance.

0
votes
0answers
20 views

Buffer-local exec-path?

Is there a way to make buffer-local overrides to exec-path (whose value is normally initialized with the PATH environment variable)? I tried (make-variable-buffer-local 'exec-path) and local ...
0
votes
0answers
43 views

Emacs doesn't seem to read the path

So, I'm trying to use ack from emacs. I've tried setting the path correctly in the following manner (setenv "PATH" (concat "/home/davor/bin/bin:" (getenv "PATH"))) (setq exec-path (...
1
vote
0answers
202 views

Correct way to set exec-path?

The GNU elisp documentation states: "Generally, you should not modify exec-path directly. Instead, ensure that your PATH environment variable is set appropriately before starting Emacs. Trying to ...
1
vote
1answer
140 views

`load-path`, `exec-path`

For some reason certain executables are not being found when I add them to the load patch but others are, while n the same directory. For example I got clang-format under usr/local/bin and I have (...
0
votes
1answer
179 views

Setting Exec-Path When Using Zsh and Tmux

I am using Emacs 25.2 with Zsh; and I have added the following to my init.el file to set both the Path and exec-path. ;; Set shell path (defun set-shell-path () (let ((shell-path (shell-command-to-...
0
votes
0answers
204 views

emacs-w32 with cygwin, can't find binaries (using wrong path?)

I have a mostly vanilla install of emacs-w32 installed through Cygwin's installer (on windows). When I run it, I call run emacs-w32 from the Cygwin terminal. Often, emacs can't find files in my ...
0
votes
1answer
465 views

Ansi-Term not reading .profile

my question is very similar to this one. I use my .profile file to set environment variables, such as EDITOR. However, when I run ansi-term and type printenv I can see that that variable is not ...
0
votes
2answers
1k views

How to get Exec-path-from-shell working in Spacemacs

I'm using the latest version of emacs, with and without a custom MacOS build (homebrew-emacs-plus). So, I'm trying to use spacemacs on MacOS, and I can't get it to pick up the $PATH on my host system. ...
0
votes
1answer
1k views

Package `exec-path-from-shell` isn't setting PATH variables from `.zshenv` on MacOS

I'm running a GUI Emacs compiled from the master git branch on MacOS El Capitan. I'm using the package exec-path-from-shell to set several environment variables I have configured in my ~/.zshenv file. ...
7
votes
2answers
222 views

equivalent of unix “which” for exec-path?

I am trying to debug some bizarre issues with my exec-path settings. When I debug PATH in shell, the key tool is "which", which tells me the absolute path we resolve for a given binary, i.e. (701) ...
2
votes
2answers
99 views

VM causing magit not to work

I have this error when I start emacs: File error: Searching for program, no such file or directory, git My Git is inside the VM in /usr/bin/git How can I point emacs to it? I'm using tramp and ...
0
votes
1answer
154 views

Why is exec-path different in emacsclient / emacsserver than in emacs?

I am trying to run an identical emacsserver setup as the emacs I normally use. I am having issues because the emacsserver has a different exec-path variable when it starts than when normal emacs ...
2
votes
1answer
2k views

GUI Emacs sets the exec-path only from Windows environment variable but not from .emacs file

I use Emacs 25.1 on my Windows XP laptop both as a command-line app (on ConEmu terminal emulator with MSYS bash as the shell) and as the GUI Emacs. I mainly use Emacs to test and compile programs, so ...
2
votes
2answers
2k views

Tramp: Waiting for prompts from remote shell

I added two new lines to my .bashrc so that Bash can find my Go programs: GOROOT=/Users/jay/work PATH=$PATH:$GOROOT/bin But as a result, when I launch Emacs, Emacs hangs for several minutes and I ...
3
votes
2answers
458 views

Why exec-path doesn't contain /usr/local/bin while /etc/paths already contains it?

Emacs 24.5.1 on OS X 10.11.1. This is the content of /ect/paths: /usr/local/bin /usr/bin /bin /usr/sbin /sbin This is the value of exec-path: ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/Applications/...
1
vote
1answer
96 views

Append to exec-path the absolute file names of directories that match a regexp?

As explained here, by (setq exec-path (append exec-path '("/sw/bin"))) one can append the directory name /sw/bin to exec-path. Is it possible to append to exec-path the absolute file names of all ...