Just open the Cygwin Emacs frame without black terminal window - emacs

Having added the Cygwin bin directory to the PATH, I can launch Cygwin Emacs directly from a "Run Command" (Windows + R) window.
However, typing emacs-w32 open first a black terminal window and then the W32 Cygwin Emacs app.
How is it possible to open just the Cygwin Emacs window?
Alternatives such as emacs-nox and emacsclient-w32 don't provide the necessary answer...

Use the cygwin command run:
C:\cygwin\bin\run emacs-w32
As you have the location of emacs-w32 in your PATH, it's also the location of run, so you can use the following:
run emacs-w32
From that, you can then create a shortcut on your desktop, or you can pin it to your taskbar, and so on.

Related

Cygwin terminal on VSC does not start from current directory

for some reason every time I open a new Cygwin terminaln on VSC, the working directory is set to /home/User by default. Buy I would want the working directory to be set, by default, to the path I am opening the Cygwin terminal from. I have installed the Cygwin terminal on VSC using Shell Launcher (Extension).

NeoVim make terminal window automatically close when program exits

The vim version has a ++close option that automatically closes the terminal when the job terminates, but since the NeoVim terminal came first it doesn't have that feature.
I need this because i am trying to run programs directly from vim, but i regularly make
curses applications which the popup window you get from :!python % can't handle, so i need the terminal window.
I am using NeoVim on arch linux if that's relevant.

wsl2-GUI-emacs open file with explorer.exe instead of xdg-open

I am working on wsl2+emacs GUI version with VcxSrv window manager server.
Within the GUI version, emacs does not open files with windows-app as it does in wsl2-terminal-emacs.
Take an example:
on dired window, I strike key & invoking dired-do-async-shell-command to open file "demestic.01.pdf";
it prompt to run with "xdg-open" rather than "explorer.exe".
Is it possible to replace "xdg-open" with "explorer.exe"?
EDIT:
You can take a look at wslview which is a part of wslu (it ships with latest versions of Ubuntu distro) and is a better alternative. wslview will try to detect the protocol used(file:, http:, https:), check whether it is a Linux path or Windows path, translate it to the proper form and open the file/folder/link.
And if you want everything to be opened in Windows, just create a link:
sudo ln -s ../../bin/wslview /usr/local/bin/xdg-open
So, whenever xdg-open is invoked, everything would open up in Windows

How do I open Emacs in terminal when I double click on a file?

I run Emacs with -nw mode, but when I double click on a file I want to edit from my desktop, it opens up the Emacs app outside the terminal. Is there a way to change this?
Using OSX 10.8.5 and emacs 24.3.1.
After opening Emacs, run server-mode. Instead of associating the double click with Emacs, associate it with emacs-client. The client will connect to the server and open the file will open in the running Emacs instance. (not tested on OSX)

Emacs on Windows disable cmd

I've always used Emacs under Linux, but now I got a Windows machine and installed it.
However, every time I open Emacs it also opens a terminal (called cmd.exe on Windows, I think). Is there a way I can disable that terminal?
Thank you.
If you got the GNU version of emacs for Windows from here: http://ftp.gnu.org/gnu/emacs/windows/, there is an .exe called runemacs.exe. Use that instead of emacs.exe. "runemacs" will not pop up the annoying cmd window.