How to make Emacs run in command line by default?
Posted on In QAHow to make Emacs run in command line by default? I do not want to open the X window.
You have at least 2 choices.
First choice: use emacs-nox
and make it the default:
# yum install emacs-nox
# alternatives --config emacs
and choose emacs-nox.
Second choice: use emacs
but with -nw
to disable the window system. Invoke emacs by
emacs -nw
You can write a small script ema
and put it into your $PATH
, e.g. ~/bin/:
#!/bin/env bash
emacs -nw $*
and invoke ema
to use emacs each time.
Another options is to have in your .bashrc file:
alias emacs=”emacs -w”
That way, when you instinctually go to launch emacs, it will still launch in the terminal.