Edward's Guide to emacs
General Notes
(ctrl-c) hit the control key and the c key at the same time
(ctrl-x-s) hit the control key and the x key, release the x key and while still holding the ctrl key it the s key
(esc a) hit the control esc key let go and then hit the a key
One of the most usefull commands is (ctrl-g) this is quit current activity, if you get stuck somewhere try that it often will dump you back to where you started from.
emacs can highlight your document based on the syntax of the programming lang that you are using, this feature is turned on under options and then Syntax Highlighting.
General Commands
- Save current file(ctrl-x-s)
- Stop that (ctrl-g)
- Exit emacs(ctrl-x-c)
- Goto start of line(ctrl-a)
- Goto end of line(ctrl-e)
- Goto the next word(esc f)
- Goto to previous word(esc-b)
Editing
Note: For commands like cutting and copying, these take place between your mark and the current cursor position
- Marking text(ctrl-space) marks one end the cursor is the other
- Copy(alt-w)
- Cut(ctrl-w)
- Paste (yank back)(ctrl-y)
- Delete to end of line(ctrl-k)
- Delete next work(esc d)
- Transpose two letters(ctrl-t)
- Transpose two words(esc t)
- Undo last(ctrl-_)
Search and Replace
- Search forward (ctrl-s)
- Search backward (ctrl-r)
- Search forward (ctrl-s)
- Repeat last search (ctrl-s-s)
- Search and Replace (esc x) replace with Return target string
- incrimental search and replace(esc %) Enter string to find Return Enter string to insert Return emacs will goto the first instance of the search string and wait for Space and it will replace or n and it skip to the next occurance.
This page was last modified on .
to the Department of Computer Science