I'm
not sure that'll solve the problem, since auctex starts whatever shell
noninteractively. A non-interactive bash shell doesn;'t read .bashrc or indeed
any config files, unless you use the BASH_ENV environment variable to tell it to
(see man bash).
For
what it's worth, i use bash all the time through emacs, however, due to the
incomplete nature of the tex/latex distribution currently included with cygwin,
i use the infinitely better and more complete miktex distribution
(www.miktex.org) which works superbly with auctex. This, being a native
windows application runs via the cmd.exe shell, but switching between shells
within an emacs session is relatively trivial (mail me if you need some elisp
for this)
jonathan.
address@hidden writes:
I use cygwin as the shell subprocess under emacs (i.e. M-x shell
launches cygwin). My shell subprocesses start in my HOME
directory. I need to make them start in the current directory of
the buffer being edited by emacs. The main reason is that auctex uses
cygwin as a shell to run latex. Under the current setup I can only
use auctex to latex a file in its home directory.
How do I
control the directory in which the shell sub-process
starts ?
Probably your ~/.bashrc has code in it to set the
working directory to $HOME. Remove that when running under emacs.
if ! test -z $EMACS; then # We're called from emacs fi
if test -z $EMACS; then # We're not called from emacs fi
are the appropriate tests.
|