Skip to main content

Questions tagged [path]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
79 views

"Aliasing" `ls` to `gls`

gls not ls: My system has two forms of ls, the standard "old school" version of ls, and GNU ls which is available as gls. In my shell, I simply created an alias to use gls, but I have not ...
Anoduck's user avatar
0 votes
0 answers
70 views

Set path to gcc for native compilation

Is there a way to tell emacs to use a specific path to GCC for native compilation, overriding any GCC found by searching the PATH environment variable? I've been trying to set up Emacs 29.1 on Windows ...
Peter Russell's user avatar
0 votes
1 answer
39 views

Match multiple machines with criteria in connection-local-criteria-alist

Background The actual problem I'm trying to solve is that Tramp does not use the PATH of the remote machine it's SSH-ing to. One workaround is to from the client set PATH depending on which machine ...
Rovanion's user avatar
  • 987
0 votes
0 answers
57 views

Export to Latex error

I’m working on a new computer (MacBook Pro) and I copied my old .emacs file to the new computer. It all looked fine, but export to Latex C-c C-e lo gives the error below: (it works fine on the old ...
zeynel's user avatar
  • 371
0 votes
1 answer
64 views

Pointing Emacs to LaTeX under zsh (for org-latex-export-to-pdf)

After moving to zsh and installing MacTeX, I can run pdflatex fine from the Terminal. $ which pdflatex /Library/TeX/texbin/pdflatex I copy that location, itself a soft link /Library/tex/texbin: ...
Sam7919's user avatar
  • 379
0 votes
1 answer
357 views

How to add miktex pdflatex to PATH

On my windows company machine I would like to setup LaTeX with Emacs. When I try to compile a .tex file I get the following error: Running `LaTeX' on `report' with ``pdflatex -file-line-error -...
swissy's user avatar
  • 87
2 votes
0 answers
321 views

Relative links and includes (Org)

My problem is almost a repost from reddit (original post). Recently, I opened a issue trying to explain what is going on (issue), but the reddit post was clearer than my explanation and very similar ...
gpetrini's user avatar
0 votes
1 answer
210 views

How to disable LSP-bridge's path-completion on certain directories?

Goal: Disable LSP-Bridge's path-completion on /bin/ directory. But let it be work on other directories. (I really like it) Why: When I edit some small shell scripts, path-completion feature hangs ...
Garid's user avatar
  • 666
1 vote
2 answers
115 views

Is there some Emacs command that behaves as readlink -f to print the full path of a especific file?

In the terminal, I can do: $ readlink -f docker-compose.yml Which outputs: /home/pedro/projects/docker-stuff/docker-compose.yml I would like to have something like that in Emacs so that I can find ...
Pedro Delfino's user avatar
0 votes
2 answers
468 views

cannot find binary even though it's in my exec-path

when I do C-h v and look up exec-path, I get the following: ("/usr/local/bin" "/usr/bin" "/bin" "/usr/local/games" "/usr/games" "/usr/lib/...
xdavidliu's user avatar
  • 223
0 votes
1 answer
371 views

"latexmk" command not found in emacs

I updated my texlive to 2022 recently and found that the auto-compilation command in tex-mode running latexmk -pdf -pdflatex=xelatex --synctex=1 -interaction=nonstopmode -file-line-error file.tex ...
Cong Wen's user avatar
0 votes
1 answer
126 views

How to tell emacs how to find TeX compiler?

I am trying to compile a .tex file using AUCTeX on Emacs 27.2. When I run the LaTeX command (via the menu bar) I get the following message: TeX-command: ERROR: AUCTeX cannot find a working TeX ...
Lindsay's user avatar
  • 37
0 votes
1 answer
198 views

Executable image-dired-cmd-create-thumbnail-program not found on Darwin, macOS

total Emacs newbie here. When I try: M-x image-dired RET FOLDER RET The minibuffer shows this error: Executable image-dired-cmd-create-thumbnail-program not found When I check the *Messages* buffer ...
ballesano's user avatar
1 vote
2 answers
160 views

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 $...
cryptograthor's user avatar
1 vote
1 answer
206 views

Accept default in ivy filename prompt

Using Doom Emacs, when I invoke a command (such as diff) that needs a filepath I get an ivy prompt that names a default value: But I am unable to clear the line or somehow tell ivy to take that ...
xeruf's user avatar
  • 354
1 vote
1 answer
154 views

Can lisp code executed via (load ...) access it's own file path?

If a script runs using (load /path/to/file.el), is there a way for the script that runs to access it's own path? (similar to Python's __file__) Asking this because I'd like to construct a relative ...
ideasman42's user avatar
  • 8,846
2 votes
3 answers
985 views

Emacs can't find Node when Node was installed using NVM (again)

My question is similar to this question. I've installed node via nvm. (executable-find "node") returns .nvm/versions/node/v15.11.0/bin/node. Entering node on eshell drops me into a node ...
cryptograthor's user avatar
2 votes
2 answers
4k views

How to use doom emacs as a golang ide quickly?

I installed the newest doom emacs on macOS. Also configed language packages as $ emacs ~/.doom.d/init.el :lang (go +lsp) :tools lsp $ ~/.emacs.d/bin/doom sync When I open a .go file, the code became ...
warmwinter's user avatar
2 votes
1 answer
498 views

How to set env values for eshell in emacs on macOS?

If use iTerm on macOS, we can set env values in its terminal. It also set path such as /usr/local/bin/ in ~/.bashrc. But in emacs' terminal as eshell, run kubectl shown kubectl: No such file or ...
oiio's user avatar
  • 23
1 vote
0 answers
957 views

Tramp can't connect - cannot find ssh

I am trying to use Tramp, but it seems unable to execute the ssh command. Here is the error from *Messages*: Tramp: Opening connection for AWS2 using ssh... Word wrapping enabled Tramp: Sending ...
n1k31t4's user avatar
  • 689
0 votes
0 answers
112 views

Mode-line Directory Path Display

Was seeking here a way to show in mode-line the full path of directory, as the answered question bellow: How can I show the full path to the current file in the mode-line for Spacemacs (Spaceline)? ...
Ronald71's user avatar
  • 184
1 vote
0 answers
485 views

Virtual environment management for python.el without changing the general PATH variable in Emacs

I try to use virtualenvwrapper.el with the build-in python.el and my virtual environments in a ./.venv directory inside each project. Because all virtual envs have the same name .venv I cannot make a ...
halloleo's user avatar
  • 1,345
1 vote
1 answer
280 views

Why can't Emacs find gfortran on my Mac?

I have tried to compile a simple helloworld.f95 on my Mac, using emacs. The root of emacs was set in the directory containing helloworld.f95. I used the following commands M-x compile gfortran -o ...
Tian's user avatar
  • 288
0 votes
0 answers
49 views

org-mind-map unable to find flatten and dot command

I get the following error when running org-mind-map. Paths the each are as follows: $ which unflatten /usr/local/bin/unflatten $ which dot /usr/local/bin/dot How to tell org-mind-map to access ...
Sati's user avatar
  • 815
0 votes
1 answer
943 views

Emacs installed with the Ubuntu application manager runs but isn't in the $PATH. Where is it?

Emacs 26.2 is installed with the application manager, not apt-get. When calling it in the terminal I get : samusz@samusz-K55:~$ emacs La commande « emacs » n'a pas été trouvée, mais peut être ...
Samusz's user avatar
  • 43
2 votes
1 answer
772 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-...
izkon's user avatar
  • 1,878
4 votes
0 answers
636 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 ...
ryanicale's user avatar
2 votes
2 answers
378 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 ...
Zsolt Botykai's user avatar
0 votes
1 answer
909 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 ...
Forge's user avatar
  • 285
1 vote
1 answer
1k 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:...
Oliver Marshall's user avatar
3 votes
2 answers
954 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 │   ...
zaile's user avatar
  • 463
1 vote
0 answers
126 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-...
antonio's user avatar
  • 1,822
0 votes
1 answer
297 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 "...
Rudi C's user avatar
  • 1
3 votes
2 answers
3k 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?...
Antoine's user avatar
  • 205
1 vote
0 answers
164 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 ~/....
user4035's user avatar
  • 1,069
4 votes
2 answers
6k 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?
jestembotem's user avatar
0 votes
1 answer
386 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-...
Ari's user avatar
  • 339
0 votes
0 answers
163 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, ...
Keks Dose's user avatar
  • 518
1 vote
2 answers
639 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 ...
Firas's user avatar
  • 131
6 votes
0 answers
322 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-...
Croad Langshan's user avatar
1 vote
2 answers
4k 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. ...
Nutritioustim's user avatar
6 votes
1 answer
4k 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. ...
idclark's user avatar
  • 161
3 votes
2 answers
319 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 ...
tmalsburg's user avatar
  • 2,570
4 votes
1 answer
300 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: /...
Snelephant's user avatar
4 votes
2 answers
682 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 ...
Startec's user avatar
  • 1,354
1 vote
1 answer
2k 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 ...
bagMan's user avatar
  • 181
5 votes
1 answer
6k 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 ...
Terry's user avatar
  • 370
1 vote
1 answer
521 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 ...
jimpudar's user avatar
  • 121
1 vote
1 answer
80 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-...
Sum Proxy's user avatar
1 vote
2 answers
51 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 ...
Vladimir Panteleev's user avatar