I am running Emacs 25 on Kubuntu 17.10.
I have a texlive installation in:
echo $PATH produces:
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")
(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?