Mac – make Emacs start in text-terminal mode (no window, like `emacs -nw`) by default

emacs

I don't want to get sidetracked too much here, but emacs -nw (in my opinion) ought to open a graphical instance of emacs, with a popup. However, foregoing the -nw switch will bring up the GUI, and an embedded CLI version is implied by the new window switch?

Anyway, can I make this

emacs myfunscript.py

run as this

emacs myfunscript.py -nw

and keep my business on the command line, where I've grown to like it?

Thanks.

Best Answer

I think -nw stands for no window. Anyway you could make a shell alias, eg in bash

alias emacs='emacs -nw'