
ALT +x +i + TAB
emacs the_file
CTRL+x+fand start typing away. When you want to save your text, just press:
CTRL+x+s
CTRL+x+kYou can also do the killing (I know that sound hideous!) and the saving at the same time by pressing:
CTRL+x+cAnd you will be prompted to save your file or just quit.
ESC+d
"The rain in Bulgaria falls mainly on the ground"
CTRL+kVoilá. The line will disappear.
CTRL+s
CTRL+rOnce again, type what you're looking for in the mini-buffer
ESC+% (percent)Emacs will switch you to the mini-buffer and ask you first which word you'd like to replace and then it will ask you for the substitute. One by one it will show the words and ask you for your consent. Just type 'y' to give it. If you want to replace every instance of that word, just type '!' (exclamation) and Emacs will change them all at once.
CTRL+x+uYou will undo your last changes. If you keep pressing that, you keep un-doing everything else before that up to the point where you started editing.
ESC + l
ESC + u
ESC + c
ESC - @
CTRL + w
CTRL + yYou can also do this with sentences, paragraphs and the entire buffer. You only have to change the first step above. The second and the third remain the same.
CTRL + SPACE + SHIFTand move the right arrow and select the amount of text you want.
CTRL + hTo select the whole text buffer, is similar:
CTRL + x + h
ESC + wThen you can take it to a different buffer or open a new one and paste the text with CTRL + y
ALT + SHIFT + $ (dollar sign)Navigating the bufferYou can easily go from the beginning to your file to the end with keystrokes - no need to be wearing out the arrow buttons!
ESC + <will get you to the beginning of the file
ESC + >will bring you to the end.
ESC + }to get to the beginning of the paragraph and :
ESC + { to go to the end of the paragraph.CTRL + x + 2
CTRL + x + 1You can even split the buffer again and have three, four or more sections. Just press CTRL + x + 2 in each section.
CTRL + x + 3CTRL + x + 1 is also used to get Emacs back to normal mode.
(setq inhibit-startup-message t)
;; don't show startup message
; Make all "yes or no" prompts show "y or n" instead
;; make CTRL+x+g goto-line(global-set-key "C-xg" 'goto-line)
;; open mail in other 'buffer'