How to make Emacs run in command line by default?

How to make Emacs run in command line by default? I do not want to open the X window.

asked Apr 10, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

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.

answered Apr 11, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...