Home

Emacs commands

Emacs commands, the most important first

Saturday 10 December 2011 at 08:03 am.

Conventions for this help guide are required, first, a character struck while holding down the control key are preceded by the CTL- and an enter key (or sometimes it used to be a return key or 'carriage return') is designate with <cr>.

First, what have we gotten into here? Emacs is a full screen character editor that allows arrow keys, which may be much more intuitive to the unfortunate folk that started life on Windows or Macintosh. While everybody knows that 'vi' is the ultimate editor, alas, Emacs is a good idea to learn.

I have gotten into emacs on a file, and am afraid of making modifications, exit without saving;

CTL-X CTL-C

Unfortunately, we can get caught in a situation where Emacs believes that there are changes to be saved, so try this;

CTL-X CTL-C n<cr> yes<cr>

At any rate, if you have issued the CTL-X CTL-C from a neutral start, meaning the context is not determined by Emacs to be something other than exit, you should be getting instructions at the bottom of the screen.


Saving the file

CTL-X CTL-S