Eli
Eli

Reputation: 38899

How Can I Get MinTTY (Cygwin Terminal) to Open Emacs in a New Window?

I can't figure out why this isn't easy to find on Google, but after searching for about 10 minutes, I just decided to give up and post here.

The subject basically says it all. I'm running MinTTY as a cygwin terminal on a Windows XP desktop. All I want to do is have emacs open up in a new window rather than inside my terminal. What would be best is a switch for this, so I could toggle it depending on my current needs. This seems like something that would be useful to a lot of people, and I know I've done it before on Linux boxes, so I imagine there must be a way to do this in cygwin too. Anyone know how?

Upvotes: 2

Views: 2802

Answers (2)

Chris McMahan
Chris McMahan

Reputation: 2680

There are a couple of scenarios that you might clarify:

  1. Running the cygwin version of emacs within a standard windows environment will call emacs within the current shell

  2. If the Cygwin X-Windows server (i.e., “XWin Server”) has been started and the DISPLAY environment variable has been set in the mintty terminal (e.g., export DISPLAY=":0"), calling emacs will start it in its own window.

  3. running the Windows version of emacs within the cygwin terminal should launch the new frame you are seeking.

If you want a separate emacs 'window', you would be best served by installing the Windows native version of emacs (I use the gnu emacs precompiled binaries), and calling it from the cygwin terminal.

Upvotes: 0

ak2
ak2

Reputation: 6778

Just start a new mintty, telling it to invoke emacs:

mintty emacs

Upvotes: 4

Related Questions