Home > emacs > Learning Emacs – Ch 2 (More editing)

Learning Emacs – Ch 2 (More editing)

Chapter 2 – More editing

A. Transpose
1. Letters
C-t (transpose-chars) [ change teh – the]
2. Words
M-t (transpose-words) [ change emacs learning – learning emacs]
3. Lines
C-x C-t (transpose-lines)

B. Capitalization
1. M-c (capitalize-word) [Capital]
2. M-u (upcase-word) [CAPITAL]
3. M-l (downcase-word) [capital]

C. Overwrite Mode
1. Press Insert Key or M-x overwrite mode or M-x ov
To turn it off type – M-x overwrite mode again.

D. Cancelling Commands
1. C-g

E. Undoing Changes
1. C-_ or C-x u (undo) [undo changes one by one]
2. M-x revert-buffer Enter [Undo all changes made since you lat saved the file]
3. C-x C-f filename~ Enter C-x C-w filename Enter

F. Recover lost changes
1. M-x recover-file Enter

 
source: “Learning GNU Emacs, 3rd Edition by Debra Cameron, James Elliott, Marc Loy. Copyright © 2005 O’Reilly Media, Inc. ISBN 0-596-00648-9”

Advertisements
Categories: emacs Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: