Home > Emacs > Emacs in shell

Emacs in shell

Most people don’t know this, but you can also run emacs from within your shell (like vi). There are some moments where it just doesn’t make sense to load the emacs GUI, and it’s just nice to know that we don’t have to use vi in those circumstances. All you need to do is add the “-nw” tag when running emacs to load it up in the shell. I also add the “-Q” so that there’s no fancy color schemes introduced.

emacs -nw -Q

The most common usecase for doing this is when you’re committing something from the shell and want to add a comment. Usually the default is vi in these circumstances, but it doesn’t really have to be…

Categories: Emacs Tags:
  1. April 23rd, 2011 at 06:40 | #1

    The first time I hear about this characteristic in emacs, and it is sooooo sweet. Thanks a lot for sharing.

  2. Frank L.
    July 2nd, 2013 at 03:18 | #2

    This is great! Thank you very much!

  1. No trackbacks yet.