Download presentation
Presentation is loading. Please wait.
Published byValentine Fowler Modified over 9 years ago
1
Introduction to Emacs (a Unix, Linux, and Windows text editor)
2
Intro to Emacs Emacs is a powerful, programmable text editor. It is available for Linux, Unix, and Windows (from ftp://ftp.gnu.org/gnu/windows/emacs/, xemacs.org, and others). To run Emacs, simple type –emacs –emacs test.cpp –(or by double-clicking or by right-clicking)
3
Emacs acronyms… Eighty Megabytes And Constantly Swapping Eventually Mallocs All Computer Storage Esc Meta Alt Ctrl Shift Exceptionally Mediocre Algorithm for Computer Scientists Emacs Makers Are Crazy Sickos Emacs Makes A Computer Slow
4
Intro to Emacs Emacs is normally in insert mode. Emacs also has a command mode. –All commands begin with either: 1.C (the Ctrl key) Hold down the Ctrl key while pressing the listed key. 2.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.
5
Emacs commands C-x C-cQuit Emacs (without saving). C-x C-sExit Emacs (saving any changes). C-x uUndo. C-sSearch. C-gQuit current command. C-kKill from the cursor position to end of line. C-yYank back (what was killed). M-x line-number-modeShow current line number.
6
Emacs command C-vmove forward one screenful M-vmove backward one screenful C-pmove to previous line C-nmove to next line C-bmove backward a character C-fmove forward a character C-amove to beginning of line C-emove to end of line M-<go to beginning of file M->go to end of file
7
Emacs command copy-paste steps: 1.move to beginning of block 2.C-space or C-@set mark 3.move to end of block 4.M-wcopy 5.move to where you wish to insert 6.C-yyank/paste
8
Emacs command cut-paste steps: 1.move to beginning of block 2.C-space or C-@set mark 3.move to end of block 4.C-wdelete/cut 5.move to where you wish to insert 6.C-yyank/paste
9
Remember… C-x C-cQuit Emacs (without saving). C-x C-sExit Emacs (saving any changes). C-x uUndo. C-gQuit current command.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.