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 [path]

The tag has no usage guidance.

-1
votes
0answers
21 views

How to source PATH for Emacs `M-!` under Gnome?

I set my PATH in .profile and I want to see they from M-! But sourcing .profile from .bashrc works only for xterm, instead with .xsessionrc (I'm in debian) seams not work at all. Any suggestion?
0
votes
0answers
42 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 (...
0
votes
1answer
54 views

Get the path to the JSON element at point

Problem statement Using Elisp, when point is on an element in a JSON datastructure (either raw JSON or an Elisp sexp of the kind generated by json.el), is there an easy way to get a json-pointer-get-...
3
votes
0answers
195 views

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 ...
2
votes
2answers
177 views

Windows 10 native (spac)emacs install can't call cygwin binary (ledger) with proper path passed

I'd like to use Windows (10) native Emacs (spacemacs) and ledger (both installed via Chocolatey). The finance layer from spacemacs provides integration for it, however when I tried to run a simple ...
0
votes
1answer
44 views

set paths in init file taking OS into account

I use the same config file between my windows-linux-mac machines. But I'm having some trouble setting some org folders because of the different definition of paths per OS. For instance setting my ...
-1
votes
1answer
157 views

Where is emacs powershell getting this PATH variable from?

When I execute the command $env:path to get the path variable in the powershell mode in spacemacs I get the following: C:\Program Files (x86)\Common Files\Oracle\Java\javapath; C:\Windows\system32; C:...
2
votes
1answer
42 views

ModuleNotFound for absolute imports in Emac's Python Repl

For some reason, emacs does not seem capable of evaluating absolute imports for any python project I run. Here is my project layout: ├── loxy │   ├── errors.py │   ├── __init__.py │   ├── loxy.py │   ...
1
vote
0answers
46 views

f.el: f-split behaviour

Using f-split from f.el: (require 'f) (f-split "c:/a/b") returns ("/" "c:" "a" "b") What is the rationale? Shouldn't it be ("c:" "a" "b")? Also in Emacs for Windows the value of: (f-path-...
0
votes
1answer
108 views

How do I use a Python library in emacs?

I am trying to use Webkit, but I can't get emacs to find the necessary python library EPC that I installed via pip (in Anaconda). Here is the error message: Debugger entered--Lisp error: (file-error "...
1
vote
2answers
717 views

two versions of emacs on mac osx - where are they

This has got to be a silly question... From a terminal window, to start emacs which comes with mac osx (version 22.1.1), I just type > emacs First set of questions: where is this emacs installed?...
0
votes
0answers
81 views

async-shell-command won't find brew ruby version

I am using Spacemacs on a Mac and trying to setup my environment for Ruby development. I have the following configurations: which -a ruby gives /usr/local/bin/ruby /usr/bin/ruby /etc/paths /usr/...
0
votes
0answers
79 views

How to get path to library installed through elpa

I have Emacs installed on multiple machines, and every time I install yasnippet through elpa. As it's version changes, it is being installed into different directories. For example: #first machine ~/....
1
vote
2answers
1k views

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?
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
78 views

On Windows 8.1, in Emacs Ghostscript doesn't work, while on commandline it does

Edited question of August 2017: After a long search I found the reason, why a wonderful software called pdfsizeopt (for my question from April 2017 see below) does not work, when called from Emacs, ...
0
votes
2answers
197 views

How to change the face of org-display-outline-path in echo area?

In org-mode, I set all the outlines to be displayed in one face size (regardless of their hierarchy) by setting (setq org-level-color-stars-only t). However, when I select an outline, org-mode ...
5
votes
1answer
143 views

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-...
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. ...
3
votes
2answers
77 views

How can I find the path of files in an (m)elpa package?

I wrote a minor mode for automatically detecting the language in which the user is typing. For this to work, I have to load some files containing language statistics. These files are in a ...
5
votes
1answer
131 views

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: /...
0
votes
1answer
153 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 ...
1
vote
1answer
395 views

How to set PATH variable to latex, so that I can use latex layer? [closed]

I installed the latest version of MacTex, and I am sure the latex is in the Libray/TeX/texbin/, I just don't know how to set the PATH variable, also I cannot install the AUCtex, I assume these two are ...
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 ...
0
votes
0answers
119 views

Path completion in remote files edited through Tramp

I am running emacs 24.5.1 and I would like to have path completion (when defining path strings) when editing remote bash/python/etc... script file through tramp. The current behavior is that, in a ...
1
vote
1answer
274 views

Why can't AucTeX see my TeXLive binaries? (Cygwin on Windows 7 x64)

I have installed the TeXLive distribution. From emacs running in cygwin mintty, the LaTeX binaries are visible from my PATH environment variable. I installed AucTeX using the built in Emacs package ...
1
vote
1answer
47 views

Running ruby files from $PATH in Eshell

I'm trying to find a way to run .rb files that are in the $PATH in Eshell by following the solution here. I added ".rb" to exec-suffixes, set eshell-force-execution to t and customized eshell-...
1
vote
2answers
36 views

Rewrite paths of opened files

How can I tell Emacs than whenever it tries to open file /a/b/c/foo.txt, it should instead open /d/e/f/foo.txt? I have a few projects and libraries which are accessible via multiple paths on the ...
1
vote
2answers
1k views

Convert a MS Windows path to short filename / 8.3 filename / SFN

How can I programmatically convert a Windows OS path containing spaces to one without spaces that uses the tilde format? BEFORE:   c:/Documents and Settings/Administrator/Desktop AFTER:   "c:/docume~...
13
votes
1answer
5k views

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 ...
1
vote
1answer
310 views

Why do paths start with “c:/c/…” in windows emacs when I use 'next-error'?

I'm using native windows emacs together with mingw. When there's a compile error, the *compilation* buffer looks like this: make -C .. make: Entering directory `/c/Users/m.grunwald/Documents/Projects/...
3
votes
2answers
693 views

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 ...
5
votes
1answer
200 views

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/...
14
votes
6answers
7k views

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: /Users/g/Library/Haskell/...
2
votes
1answer
619 views

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,...
6
votes
1answer
1k views

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 /...
6
votes
1answer
764 views

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 ...
25
votes
2answers
8k views

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 ...