I am running Emacs 25 on Kubuntu 17.10.
I have a texlive installation in:
/home/user/texlive/2017/bin/x86_64-linux
echo $PATH
produces:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/texlive/2017/bin/x86_64-linux
But out of this, /home/user/texlive/2017/bin/x86_64slinux was added by hand in my ~/.zshrc.
So, I added the following line to my ~/.emacs:
(setenv "PATH" (concat (getenv "PATH") ":/home/user/texlive/2017/bin/x86_64-linux")
Now, (getenv "PATH")
shows the full path as mentioned above.
And yet when I try to compile a .tex file using C-c C-a, it produces an error:
AUCTeX cannot find a working TeX distribution.
What is happening? How do I get AUCTeX to compile?
(getenv "PATH")
? – matteol Dec 4 '17 at 12:11/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
The last part was added in my~/.zshrc
by hand. I think that is the cause of the error. How do I set it right? – deshmukh Dec 4 '17 at 12:37PATH
there won't affect what's set in emacs. – user12563 Dec 4 '17 at 12:52