Home > emacs > Emacs Again (8): Recent Commands

Emacs Again (8): Recent Commands

  • 2009-10-10 (Sat) 19:12
  • emacs

I know some of them appeared before, but I re-find them again and again. That’s how you learn it, right?

Key Stroke Command Name Action
M-; comment-dwim comment or uncomment the selected region
M-g g goto-line Interestingly M-g g and M-g M-g are the same goto-line. Very self explainatory.
C-M-\ indent-region self explainatory. Without argument, Emacs will automatically find suitable indent. If you do throw argument like C-u 10 C-M-\ then it adds 10 spaces (or tab. depends on your mode) in the beginning of the selected region.
C-j eval-print-last-sexp You can only do this in “Lisp-Interaction” mode? Evaluate expression on. You can use it as temporary command. As usual, it display the last return value.
C-x 3 split-window-horizontally Split current window into two windows side by side. Vertical split is C-x 2. If you want to get windows back into 1 window do C-x 0 or C-x 1. 1 brings you to absolutely 1 window and 0 make split windows back to 1 (it makes difference when you have multiple sprits). If you want to switch between windows, do C-x o.
C-_ undo Undo and redo, smartly executed. It says _(underscore) but you basically can do as -(minus sign). Maybe because I use US-ASCII layouted keyboard. Those two characters are assigned on the same key, so I don’t have to hold Shift key in order to type _(underscore).
C-g C-_ cancel undo Explicitly you can redo by doing this.

Change Split Ratio

So I was wondering if I can change the window split ratio, when I do C-x 2 or C-x 3. I asked it on IRC, and somebody immediately answer me. It’s simple, as Emacs way. You pass the argument.


C-u 20 C-x 3

So this will make left side 20 cursor width and split window vertically.

Community channel

Related to the preceding section, you can ask question on IRC. And also there is a twitter account @learnemacs, and he (or she) can answer your question if you tweet something.

Comments:0

Comment Form
Remember personal info

Trackbacks:1

Trackback URL for this entry
http://blog.nydd.org/2009/10/emacs-again-8-recent-commands/trackback/
Listed below are links to weblogs that reference
Emacs Again (8): Recent Commands from Vantage Point of Queens
pingback from Vantage Point of Queens - Emacs Again (9): some tips and not to be purist. 09-10-12 (Mon) 22:27

[...] Older [...]

Home > emacs > Emacs Again (8): Recent Commands

Search
Feeds
Meta
Links
Ads!

Return to page top