Questions tagged [exec-path]
23 questions
44
votes
3 answers
exec-path and $PATH
I have seen examples online where people add paths to the default path in Emacs with:
(add-to-list 'exec-path "/usr/local/bin/")
I am new to Elisp, and I think I understand what the statement above does, but I have a few questions:
In what order…

Amelio Vazquez-Reina
- 5,157
- 4
- 32
- 47
7
votes
3 answers
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 /etc/paths:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
This is the value of exec-path:
("/usr/bin"
"/bin"
"/usr/sbin"
"/sbin" "/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_9"
…

an0
- 183
- 6
6
votes
2 answers
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) % which ifconfig
/sbin/ifconfig
Is there some…

Andrew H. Hunter
- 161
- 1
6
votes
7 answers
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 get this error:
Tramp: Opening connection for bin…

incandescentman
- 4,111
- 16
- 53
5
votes
1 answer
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 I frequently use Mono C# compiler (gmcs) and GCC.…

Terry
- 370
- 2
- 14
4
votes
1 answer
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. However, none of them inherited in Emacs. GOPATH…

idclark
- 141
- 1
- 3
4
votes
2 answers
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 does.
To start emacsserver I am…

Startec
- 1,354
- 1
- 13
- 30
2
votes
0 answers
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 modify exec-path independently of PATH can lead to…

Andy
- 21
- 4
2
votes
2 answers
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 plink to communicate the VM and emacs.
I tried leaving…

Jenia Ivanov
- 427
- 4
- 14
1
vote
2 answers
updated exec-path and path, binaries still not executable
I have several binaries I would like to call from eshell; I'm running into not-found-in-path errors. They are callable from a normal shell.
Following the advice from the emacs wiki:
~/.emacs.d/config $ which cargo
which: no cargo in…

cryptograthor
- 225
- 1
- 10
1
vote
1 answer
How to properly set mbsync and gpg binaries path with mu4e?
I'm trying to sync my emails from emacs using mu4e but I get the following error message:
Process mu4e-test exited abnormally with code 127
/bin/bash: mbsync: command not found
If I set mbsync with its full path in my init.el file:
(setq…

CuriousObserver
- 23
- 4
1
vote
2 answers
How does process-environment get initialized and why would it be different from initial-environment?
I'm trying to troubleshoot an issue with my exec-path. It contains a couple of paths prepended to it that I don't want. initial-environment contains the paths that match what I see when I echo $PATH in xterm but process-environment contains a couple…

Eric Ihli
- 255
- 2
- 9
1
vote
1 answer
mac-os-x call-processappears to execute as UID 0, breaks exec-path-from-shell-initialize
My emacs and shell:
.rc/zshell [master●] » emacs --version ▸▸▸▸▸▹▹▹▹▹ 22:17:29
GNU Emacs 26.3
Copyright (C) 2019 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU…

Kannan Varadhan
- 33
- 3
1
vote
0 answers
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 overrides seem to work fine after that, but are there any…

Lassi
- 377
- 1
- 7
1
vote
1 answer
`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
(setq exec-path (append exec-path…

lo tolmencre
- 169
- 6