Questions tagged [path]

58 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
27
votes
2 answers

Using conda environments in emacs

What is the best way to use conda environmets using emacs as a Python IDE? I have got different conda environments while programming in Python: $ conda info -e # conda environments: # django /Users/Pablo/anaconda/envs/django scipy …
PabloRdrRbl
  • 435
  • 1
  • 4
  • 7
25
votes
7 answers

Emacs and command line $PATH disagreements on OSX

Having some issues with PATH settings on Emacs that are affecting my Haskell environment: I'm using ZSH, and when I go to the command line and call echo $PATH, it returns:…
Galder Zamarreño
  • 1,527
  • 2
  • 12
  • 21
11
votes
1 answer

How do I make tramp+eshell use my environment customized in the remote ~/.bash_profile

I have set up custom $PATH in my ~/.bash_profile on a remote machine (for programs installed user-locally by nix and cabal). I use eshell and tramp to issue commands on the remote machine (cd /remotehost:somedir; then commands). (I chose this method…
6
votes
1 answer

Who is "juergen" and why can I see the value of his exec-path?

I noticed something strange when calling C-h v (describe-variable) on exec-path today: exec-path is a variable defined in `C source code'. Its value is ("/usr/bin" ...) Original value was ("/home/juergen/.opam/4.02.0/bin" "/home/juergen/.cabal/bin"…
itsjeyd
  • 14,586
  • 3
  • 58
  • 87
6
votes
0 answers

How to map file paths when using docker

I'm running code in development using docker. I do that using the -v flag to docker run to mount my code in the container. I've set directory-abbrev-alist and configured compilation-error-regexp-alist-alist appropriately, so I can click on links in…
Croad Langshan
  • 3,192
  • 14
  • 42
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
5
votes
1 answer

M-x shell doesn't know about installed apps

I have to launch almost any application by specifying the whole path which is annoying. For example, git works fine, but lua does not. Both are installed in the same place: $ which git /usr/local/bin/git $ which lua /usr/local/bin/lua How to make…
lukas.pukenis
  • 677
  • 6
  • 11
4
votes
0 answers

Emacs into iCloud Drive for Coq

I use two Macs in my day to day coding studies: one iMac and one Macbook Air (three, if you count Emacs, ha ha ha). I often code on the same files with both computers, and iCloud Drive makes sense as a way to manage these files. I currently have a…
ryanicale
  • 41
  • 1
4
votes
2 answers

Emacs - Path to Python interpreter

I've got python 3.6 in this directory: D:\Python36 How can I set in .emacs path to python 3.6 interpreter?
jestembotem
  • 43
  • 1
  • 3
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
1 answer

Bookmarks across different computers

Bookmarks in the bookmarks file appear to be saved using absolute paths. This creates conflicts resolving bookmarks in a file that is synced across different computers: Absolute path computer 1: /user/sync/file_with_bookmark Absolute path computer…
Snelephant
  • 814
  • 1
  • 7
  • 17
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
4
votes
2 answers

Why does Emacs.app (on Mac OS X) find the ctags executable inside Xcode.app?

When I try to generate a TAGS file, emacs executes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags, which causes problems because it is not compatible with the settings emacs uses. I figured out how to…
Jay
  • 49
  • 2
3
votes
1 answer

Set variables based on path without using directory-local variables

I want to set variables, in particular, compile-command and tabbing related variables based on the path of the file I'm editing. In my .vimrc I use the following to do this. autocmd BufRead,BufNewFile */path/*.ext set tabbing-setting autocmd…
Praxeolitic
  • 387
  • 2
  • 9
1
2 3 4