1

First, I tried installing the latest emacs-nox, but that did not work.

Then, I added -nw to my ~/.bash_aliases, which works in most cases, except when I need to run sudo emacs [file] I still get emacs with X. Furthermore, when I set my git editor to emacs, and run git commit -a, emacs with X pops up. How do I disable X globally, so I don't have to go around adding -nw to every possible configuration?

1 Answers1

0

So far I've had success making bash aliases for emacs and sudo. Edit your ~/.bashrc (or ~/.bash_aliases if you use that) to include the following:

alias emacs="emacs -nw"
alias sudo="sudo "

I'm still disappointed that the latest emacs-nox doesn't just work out of the box.

Update: I found I had not properly removed the old version of emacs. Make sure when you run the remove command, you include the *:

apt-get remove emacs*
apt-get install emacs23-nox