From: coskun <coskun.hasan.dr@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: M-x shell RET on Windows not working
Date: Sun, 17 Feb 2008 19:28:51 -0800 (PST) [thread overview]
Message-ID: <9d8599a3-aac5-4086-8f2b-a9e944967293@62g2000hsn.googlegroups.com> (raw)
In-Reply-To: bdf31ba2-81ae-44b9-93c2-b035ab6aa9b2@s37g2000prg.googlegroups.com
On Feb 17, 9:11 pm, nullius.fil...@gmail.com wrote:
> X-no-archive: yes
> On Feb 18, 8:50 am, coskun <coskun.hasan...@gmail.com> wrote:
>
> > I wanted to post an update. As I said earlier, cmd.exe at Command
> > Prompt works. But cmdproxy.exe does not work. It turns out that Emacs
> > calls cmdproxy.exe when I do 'M-xshell<RET>' not cmd.exe:
>
> > shellrun *shell* C:/Program Files/Emacs/bin/cmdproxy.exe -i
>
> > Please let me know if you have any ideas?
>
> You can change your shell by adding the line
>
> (setq shell-file-name "cmd")
>
> to your dot emacs initialization. But that is not your problem with
> running MikTeX thru' Auctex. Your problem is that Auctex expects
> to use a different shell called "sh." Emacs is also much happier to
> use that shell.
>
> Here is how to install "sh"
>
> 1. Pick up a tool that can extract bz2 compressed files. I use one
> called 7zip (www.7-zip.org/). When you install 7zip it will magically
> set up a file association for bz2.
>
> 2. Open a command prompt and make a directory
>
> c:\>mkdir c:\msys
>
> 3. Go tohttp://www.mingw.org/it points to a download link to
> sourceforge with a shitload of packages. You want the one-
>
> msysCORE-1.0.11-2007.01.19-1.tar.bz2
>
> 4. Double click twice on msysCORE-1.0.11-2007.01.19-1.tar.bz2.
> First double click with 7zip will decompress the files into a tar
> format,
> the second double click will decompress the files into a normal
> directory structure. Do your normal "Shift click" to select all the
> files and directories in the 7zip window and extract them to a C:\msys
>
> 5. You should now have file tree something like
> C:\msys
> C:\msys\bin
> C:\msys\doc
> .
> .
> C:\msys\msys.bat
>
> 6. This is where the magic happens. You are about to disconnect
> emacs from the windows world to reconnect to unix. You are
> going to fuck around with all the environment variables so that Emacs
> sees a different operating system to the rest of windows applications.
>
> Add the following code at the top of your dot emacs.
>
> You'll have to customize to suit. For example, my MikTeX is at
>
> c:\Program Files\MikTeX 2.6
>
> and so gets that particular magic name.
>
> My Emacs is installed at c:\bin\emacs.. and etc.
>
> ;;; _emacs
> (setq exec-path '("c:/Progra~1/miktex~1.6/miktex/bin"
> "c:/Progra~1/gs/gs8.61/bin"
> "c:/bin/emacs/bin"
> "c:/msys/bin"
> "c:/msys/local/bin"
> "c:/Progra~1/Aspell/bin"))
> (setenv "PATH" (mapconcat 'identity exec-path path-separator))
> (setq shell-file-name "sh") ;; required for perl
> (require 'tex-mik)
>
> 7. If you have followed all this you should now have opened
> up the true power of auctex, and completely disconnected
> from the dos world.
Many thanks.
Best,
Coskun
next prev parent reply other threads:[~2008-02-18 3:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-14 3:50 problem with toolbar commands coskun
2008-02-14 6:53 ` Ralf Angeli
2008-02-14 14:44 ` Joel J. Adamson
2008-02-14 19:37 ` coskun
2008-02-14 21:02 ` Ralf Angeli
2008-02-14 22:37 ` coskun
2008-02-15 6:57 ` Ralf Angeli
2008-02-15 12:45 ` coskun
2008-02-15 21:13 ` M-x shell RET on Windows not working (was: problem with toolbar commands) Ralf Angeli
2008-02-15 22:11 ` M-x shell RET on Windows not working Mike Treseler
2008-02-16 4:08 ` coskun
2008-02-16 13:25 ` Eli Zaretskii
[not found] ` <mailman.7477.1203168359.18990.help-gnu-emacs@gnu.org>
2008-02-16 17:27 ` coskun
2008-02-17 23:50 ` coskun
2008-02-18 3:11 ` coskun
2008-02-18 3:11 ` nullius.filius
2008-02-18 3:28 ` coskun [this message]
2008-02-18 21:21 ` Ralf Angeli
2008-02-18 3:11 ` Mike Treseler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9d8599a3-aac5-4086-8f2b-a9e944967293@62g2000hsn.googlegroups.com \
--to=coskun.hasan.dr@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.