Here is a more extensive and elaborate overview of useful shortcuts in the Emacs Editor. For a general reference to Emacs shortcut, check out this Emacs reference.
Open help file. You do not need to select a word before using the shortcut. It will suggest the word at the current cursor position, or lets you type a word in the minibuffer. There is autocompletion by typing <TAB>.
E (in the help browser)
open the help file as plain text (in sclang-mode), so it can be edited.
Find definitions (method or class). Again, you can type the word you want to look for in the minibuffer and it suggests the word at the current cursor position.
C-c ;
Find references to (method or class). (ditto)
C-c C-k
Open current file at the svn development path location. You need to have set the devpath variable in Platform for this to work properly, e.g. thisProcess.platform.devpath = "~/svn/SuperCollider3".standardizePath;
Search / find. This allows you to set a string in the mini-buffer. The occurrences in the text will be highlighted and you can press C-s again and again to jump to next occurrences
Paren match highlighting. Can also be set from the options menu.
M-;
Add comment. If you have a text selected, then that text will become a comment. It will remove the commenting // when you have selected a commented text.
C-M-j
Continue the comment on the next line.
C-u M-;
Remove comment. This removes the whole comment, so also the text!
A nice feature that not all know about is what happens if you feed it with a universal argument: ‘C-u C-SPC’. It’s an easy way to navigate back to your previous editing spots by jumping to the positions stored in the buffer’s local mark ring. Repeated calls will cycle through the ring of marks.
If you use TransientMarkMode and you want to set the mark but don’t want to subsequently see the region highlighting, you can use ‘C-SPC C-g’ to set the mark and then deactivate it.
In addition to the ordinary mark ring that belongs to each buffer, Emacs has a single global mark ring. It records a sequence of buffers in which you have recently set the mark, so you can go back to those buffers.
Setting the mark always makes an entry on the current buffer’s mark ring. If you have switched buffers since the previous mark setting, the new mark position makes an entry on the global mark ring also. The result is that the global mark ring records a sequence of buffers that you have been in, and, for each buffer, a place where you set the mark.
‘C-x C-SPC’ (‘pop-global-mark’) jumps to the buffer and position of the latest entry in the global mark ring. It also rotates the ring, so that successive uses of ‘C-x C-SPC’ take you to earlier and earlier buffers.
You can customize the behaviour of Emacs, by putting things in the startup file of emacs. This file is ~/.emacs. You can define options there, for example:
nil means that an option is turned off, t or 1 means that it is turned on.
Configure the text cursor NOT to move after hitting C-c C-c
Recentf is a minor mode that builds a list of recently opened files. This list is automatically saved across Emacs sessions. You can then access this list through a menu. Put this in your `~/.emacs’:
For adding a shortcut (C-x C-r) to open a recent file add this code as well: