Presentation is loading. Please wait.

Presentation is loading. Please wait.

Emacs CSC 135.

Similar presentations


Presentation on theme: "Emacs CSC 135."— Presentation transcript:

1 Emacs CSC 135

2 Emacs Emacs is a command-based text editor that runs in a unix terminal window Emacs has a large number of sophisticated commands … but a beginner can edit effectively with a small subset Basic usage: Open a file emacs filename Start typing Navigate with the arrow keys To save the file: C-x C-s To exit the editor: C-x C-c C – control key M – “meta” (esc, or sometimes alt)

3 Emacs Navigation Use the arrow keys or Larger steps
C-f move forward one char C-b move backward one char C-p move to previous line C-n move to next line Larger steps M-f move forward one word M-b move backward one word C-a move to the beginning of the current line C-e move to the end of the current line

4 Emacs - copying, pasting, deleting
Set a mark C-spacebar Navigate to highlight “marked” text Operations on marked text C-w delete (kill) the marked region M-w copy the marked region C-y paste (yank) the copied/killed region/line C-x C-x exchange cursor and mark

5 Emacs – misc. Undo command! Search
C-x u undo previous actions (with a history) Search C-s search forward C-r search backward


Download ppt "Emacs CSC 135."

Similar presentations


Ads by Google