caldwell / build-emacs

Build scripts for www.emacsformacosx.com
http://www.emacsformacosx.com/about
GNU General Public License v3.0
364 stars 61 forks source link

emacs-nox binary to avoid need for -nw flag? #129

Closed SaraCPickett closed 1 year ago

SaraCPickett commented 1 year ago

I use emacs exclusively from the command line and I want it to stay in Terminal rather than launching its own window, so I run it with the -nw flag, but that requires remembering to use the flag or setting up an alias. Years ago I used to use emacs-nox, which avoided using X. It might be too confusing to reuse the command name, but I wish there was a binary for macos that automatically ran emacs with -nw. I think it could be done with a little binary in bin that runs the main Emacs rust launcher with the -nw flag. Thanks.

caldwell commented 1 year ago

That's not a terrible idea. It could probably just be a shell script in the app bundle. How about just emacs-nw? It could probably be as simple as

#!/bin/sh
${0%/*}/Emacs -nw "$@"
caldwell commented 1 year ago

The Nightly build for 2023-02-09 has this file in there. It will eventually make it into a release (which is soonish if I understand correctly (on the order of months). Thanks for the idea.