Posted by: rydow | June 21, 2007

Today’s emacs commands

On one of the longest days of the year, remember this:

  • C-l (Ctrl+L) Center text around cursor.
  • C-u 0 C-l Makes the line where the cursor is scroll to top.
  • M-t Swaps two words around cursor. It is useful when swapping the order of parameters in a function call. Place the cursor on the comma and hit M-t.
Advertisements

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

Categories

%d bloggers like this: