| | | | | |

Ctrl and Meta Keys

  • Emacs uses special key sequences for recognizing command or action statements
  • Entering text, including code, is verbatim, until a command statement is encountered
  • Command statements begin with either one of the two action keys: the Ctrl or Meta keys
  • Ctrl (abbreviated as 'C' in Emacs documentation) is the 'Ctrl' (short for "Control") key on your keyboard
  • Meta (abbreviated as 'M' in Emacs documentation) is either the 'Esc' ("Escape") or 'Alt' ("Alternate") key on your keyboard, depending on how you set up your personal access to Emacs
  • We recommend using Alt as your Meta key. To do this in SecureCRT:
    • From SecureCRT's menu, choose Options | Session Options
    • Under Emulation | Emacs, select Use Alt as Meta key
    • Select OK
  • To issue a command or action sequence hold down the action key (C or M) and press the other key
  • Examples
    • C-x :  Means hold down 'Ctrl' and press 'x' then release both
    • C-X : Means hold down 'Ctrl' and press 'X' ('Shift' + 'x') then release both
    • M-l  : Means hold down 'Alt' and press 'l' then release both
    • C-x C-s : Means hold down 'Ctrl' and press 'x' then release both, then hold down 'Ctrl' and press 's' and release both.
    • M-x t : Means hold down 'Alt' and press 'x' then release both, then press and release 't'

| | Top of Page | A. The Emacs Text Editor - 4 of 6