Emacs Tip (@EmacsTip) profile picture

Tips on using GNU Emacs.

Joined May 2011
In shell-mode, use M-r to search through history, and M-<up> and M-<down> to scroll throw history.
1
2
RT @JohnDCook: New post: A surprise with #emacs and Office 2007. http://t.co/NpMwOai
Move point to previous mark: C-u C-space. More useful than it sounds. Go back where you were before some excursion.
1
1
3
Overview of the Emacs calculator calc. http://t.co/Yxc6ju6
Search Emacs documentation: M-x apropos-documentation
C-h m describes your current modes and key bindings.
1
C-x + makes the size of your windows more nearly equal.
1
Use M-/ for auto completion based on the text of the current buffer.
1
To move ahead so many days in the Emacs calendar, type the number followed by C-f. Example, 90 C-f moves ahead 90 days.
Fun but useless Emacs commands: M-x morse-region and M-x unmorse-region
2
"Why I run shells inside Emacs" http://bit.ly/l8My7x
3
Use M-x rename-buffer to rename your *shell* buffer. Then, additional M-x shell calls open new shells.
http://bit.ly/jN19pr "Let's just use Emacs" Emacs as a prose editor.
1
1
Use C-x C-o to remove all but one line of whitespace between code blocks.
RT: #emacs tip: Inside a shell, M-p brings up the previous command. (via @JohnDCook)
Don't know what a key binding does? Use C-h k, then enter the keys. *Very* handy.
1
Correction to last tweet: I meant C-x k to close the buffer. C-k is kill.
Tab completion in #Emacs often pops up a window. Rather than using C-x o C-k to close it, just hit space.
Use C-( to start recording a keyboard macro, C-) to stop. and C-x e to playback. Combine with C-u 10 (use this before) to play back 10 times
C-x C-f path/to/a/directory + enter drops you into dired. http://bit.ly/iC3GHv