how to remove multiple emacs instances in windows taskbar
This looks like an option:
To pin Emacs to your task bar, right-click on the Emacs icon in the task bar. Right-click on the small Emacs icon that appears, and click on Properties. Change the target to
c:\emacs\bin\runemacs.exe
, and change the start directory to whichever directory you prefer.
A related answer:
I have wrestled with the same problem. What I did:
- I made a shortcut which has runemacs.exe as the target.- set environment variable ALTERNATE_EDITOR c:\path-to-emacs\runemacs.exe- associate the files with certain suffix like *.c with emacsclientw.exe
The last two items are useful if you you want to open a file in emacs by double click on windows explorer. The ALTERNATE_EDITOR environment variable allows emacs to start a new instance if none are running. Otherwise it will open the file on the already runnin emacs instance.
See also: http://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-Startup.html
Works for me. I use native windows emacs, not the cygwin one.