Introduction to Emacs - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

Introduction to Emacs

Description:

Esc Meta Alt Ctrl Shift. Exceptionally Mediocre Algorithm for Computer Scientists ... (meta = either Esc or Alt) Hold down the Alt key while pressing the listed ... – PowerPoint PPT presentation

Number of Views:152
Avg rating:3.0/5.0
Slides: 10
Provided by: georgejgr
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Emacs


1
Introduction to Emacs
  • (the Unix, Linux, and Windows text editor)

2
Intro to Emacs
  • Emacs is a powerful, programmable text editor.
  • It is available for Linux, Unix, and Windows.
  • To run Emacs, simple type
  • emacs
  • emacs test.cpp

3
Emacs acronyms
  • Eighty Megabytes And Constantly Swapping
  • Eventually Mallocs All Computer Storage
  • Esc Meta Alt Ctrl Shift
  • Exceptionally Mediocre Algorithm for Computer
    Scientists
  • Emacs Makers Are Crazy Sickos
  • Emacs Makes A Computer Slow

4
Intro to Emacs
  • Emacs is normally in insert mode.
  • Emacs also has a command mode.
  • All commands begin with either
  • C (the Ctrl key)
  • Hold down the Ctrl key while pressing the listed
    key.
  • M (meta either Esc or Alt)
  • Hold down the Alt key while pressing the listed
    key.
  • Or press and release the Esc key and then press
    the listed key.

5
Emacs commands
  • C-x C-c Quit Emacs (without saving).
  • C-x C-s Exit Emacs (saving any changes).
  • C-x u Undo.
  • C-s Search.
  • C-g Quit current command.
  • C-k Kill from the cursor position to end
  • of line.
  • C-y Yank back (what was killed).

6
Emacs command
  • C-v move forward one screenful
  • M-v move backward one screenful
  • C-p move to previous line
  • C-n move to next line
  • C-b move backward a character
  • C-f move forward a character
  • C-a move to beginning of line
  • C-e move to end of line
  • M-lt go to beginning of file
  • M-gt go to end of file

7
Emacs command
  • copy-paste steps
  • move to beginning of block
  • C-space or C-_at_ set mark
  • move to end of block
  • M-w copy
  • move to where you wish to insert
  • C-y yank/paste

8
Emacs command
  • cut-paste steps
  • move to beginning of block
  • C-space or C-_at_ set mark
  • move to end of block
  • C-w delete/cut
  • move to where you wish to insert
  • C-y yank/paste

9
Remember
  • C-x C-c Quit Emacs (without saving).
  • C-x C-s Exit Emacs (saving any changes).
  • C-x u Undo.
  • C-g Quit current command.
Write a Comment
User Comments (0)
About PowerShow.com