I'm on Windows 7, running GNU Emacs 24.4.1, and I have also installed Cygwin and I am trying to use Cygwin as the shell in Emacs. I followed the answer here:
https://stackoverflow.com/questions/235254/how-can-i-run-cygwin-bash-shell-from-within-emacs
And have this in my init-file
(setq shell-file-name "C:/cygwin64/bin/bash")
(setq explicit-shell-file-name shell-file-name)
(setenv "PATH"
(concat "~/bin:/usr/local/bin:/usr/bin:"
(replace-regexp-in-string " " "\\\\ "
(replace-regexp-in-string "\\\\" "/"
(replace-regexp-in-string "\\([A-Za-z]\\):" "/\\1"
(getenv "PATH"))))))
When I try to compile on Latex, I get this error: "ERROR: LaTeX Error: File `fullpage.sty' not found."
Disabling cygwin in my init file fixes the problem. I feel like enabling Cygwin might mess up Emacs with path names, so it can't find the fullpage.sty and other Latex packages. Anyone ideas on how to fix this?
texfm
directory to$HOME/texfm
at least just to try and see if it changes anything. – wvxvw Apr 27 '15 at 20:45The weird thing is, if I open up a Cygwin terminal now and do pdflatex filename.tex, everything works fine. However when I open up a shell from Emacs, and do the same thing, it still has the error. Does the emacs shell automatically use your .bashrc file, or do I have to configure that?
– bkmoney Apr 27 '15 at 21:09