Created
December 29, 2010 21:50
-
-
Save jrichter/759121 to your computer and use it in GitHub Desktop.
my emacs key combos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Emacs Rails | |
C-c n Goto Mailer | |
C-c z '' RSpec Fixture | |
C-c x '' Fixture | |
C-c c '' Controller | |
C-c g '' Migration | |
C-c r '' RSpec | |
C-c u '' Unit Test | |
C-c m '' Model | |
Other Keys | |
C-x-c Quit | |
C-x-s Save file | |
C-x s Save all open files | |
C-x-w Save file as | |
C-x f Choose recent file (recentf-ido...) I changed this binding to recentf-open-files instead | |
C-x-f Find file (find or create) | |
C-x i Insert the contents of a file at cursor position | |
C-s Search through contents of active buffer regex allowed | |
C-r Search backwards | |
M-x replace-string RET String replace from here to end of buffer; prompts for string and replacement | |
M-x query-replace RET String replace from here to end of buffer, querying for each occurrence | |
M-x load-file RET (load a file, or reload a file that is already loaded) | |
M-x goto-line RET (goto a line and set mark from previous cursor position) | |
C-x b Switch buffer | |
C-x-b Show buffer list | |
C-x k Close buffer | |
C-x 2 Split current buffer horizontally | |
C-x 3 Split current buffer vertically | |
C-x 1 Make current buffer the only one | |
C-x o Switch between visible buffers | |
C-x-h Load URL - source into buffer | |
C-[SPACE] Set mark | |
C-w Cut and save text from here to mark | |
M-w Copy text from here to mark | |
C-y Paste saved text | |
C-k Cut text from the cursor to the end of the line | |
M-z Zap from cursor to a given character | |
C-x g Git repository (if current dir is a git repo it will show a file list) | |
C-g Cancel minibuffer | |
C-_ Undo | |
C-x u Redo (undo undo's) | |
C-x m Load shell | |
C-c-h Show key bindings | |
C-c a Org-agenda | |
Good Resources - some of which got into this file. | |
http://xahlee.org/emacs/elisp_examples.html - Very Helpful | |
http://www.nbcs.rutgers.edu/newdocs/unx01101/unx01101.php3 - Very Helpful | |
http://www.emacswiki.org/emacs/CopyingWholeLines - Very Helpful | |
http://www.rgrjr.com/emacs/emacs_cheat.html | |
http://xkahn.zoned.net/help/emacs.html | |
http://www.maths.lancs.ac.uk/~rowlings/Splus/Course99/emacsrefcard.html | |
http://www.stevenchan.us/files/Notesheet-Emacs.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment