Can I make Emacs start in text-terminal mode (no window, like `emacs -nw`) by default?

Dro*_*ans 5 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 Code Online (Sandbox Code Playgroud)

run as this

emacs myfunscript.py -nw
Run Code Online (Sandbox Code Playgroud)

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

Thanks.

fst*_*stx 6

我认为 -nw 代表没有窗口。无论如何,您可以创建一个 shell 别名,例如在 bash 中

alias emacs='emacs -nw'
Run Code Online (Sandbox Code Playgroud)