7

When I start Emacs not from the command line on Windows 10 it creates two windows, not one. Is there any way to make the blue window go away? I usually need 4-5 instances of Emacs running so it clutters up my set up. And No, I, unfortunately, cannot use Linux.

two windows

1 Answer 1

10

Instead of using the emacs command, use the runemacs command (which is provided in the Emacs distribution, in the same bin directory as emacs.exe.

emacs is a command-line program that can run Emacs in the text window, or launch the Emacs GUI-- but if it does that, the command-line window remains. runemacs knows about the windowing system, and only launches the Emacs GUI, so the vestigial command-line window is not created.

1
  • 2
    For those of us who do stuff like pin applications to our taskbar, if you pin emacs once it's running you will get a shortcut to emacs.exe, but if you right-click the icon, then right-click on emacs in the pop-up menu, then choose properties, you can change the target of the shortcut to runemacs.exe... now your pinned shortcut will not open the extra window.
    – mlibby
    Dec 4, 2022 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.