110 likes | 261 Views
Introduction to Emacs. (a Unix, Linux, Mac and Windows text editor). Intro to Emacs. Emacs is a powerful, programmable text editor. It is available for Linux, Unix, Mac, and Windows (from ftp://ftp.gnu.org/gnu/windows/emacs/, xemacs.org, and others) . To run Emacs, simple type emacs
E N D
Introduction to Emacs (a Unix, Linux, Mac and Windows text editor)
Intro to Emacs Emacs is a powerful, programmable text editor. It is available for Linux, Unix, Mac, and Windows (from ftp://ftp.gnu.org/gnu/windows/emacs/, xemacs.org, and others). To run Emacs, simple type emacs emacs test.cpp (or if using a GUI by double-clicking or by right-clicking)
Emacs acronyms… Eighty Megabytes And Constantly Swapping Eventually Mallocs All Computer Storage Esc Meta Alt Ctrl Shift Exceptionally Mediocre Algorithm for Computer Scientists Emacs Makes A Computer Slow
Intro to Emacs Emacs is normally in insert mode. Emacs also has a command mode. All commands begin with either: C (the Ctrl key) Hold down the Ctrl key while pressing the listed key. M (meta = either Esc or Alt) Hold down the Alt key while pressing the listed key. Or press and release the Esc key and then press the listed key.
Basic Emacs Commands C-x C-c Quit Emacs. C-x C-s Exit Emacs (saving any changes). C-x u Undo. C-s Search. C-g Quit current command. C-k Kill from the cursor position to end of line. C-y Yank back (what was killed).
Basic Emacs Commands C-v move forward one screenful M-v move backward one screenful C-p move to previous line C-n move to next line C-b move backward a character C-f move forward a character C-a move to beginning of line C-e move to end of line M-< go to beginning of file M-> go to end of file
Basic Emacs Commands copy-paste steps: move to beginning of block C-space or C-@ set mark move to end of block M-w copy move to where you wish to insert C-y yank/paste
Basic Emacs Commands cut-paste steps: move to beginning of block C-space or C-@ set mark move to end of block C-w delete/cut move to where you wish to insert C-y yank/paste