Presentation By:- Komal Sadhwani Emacs (Editor MACroS) Presentation By:- Komal Sadhwani
Introduction GNU Emacs is one of the most commonly used text editor. EMACS was written in 1976 by Richard Stallman and Guy L. Steele, Jr. as a set of Editor MACroS for the TECO editor. Emacs uses special keys (ESC/Alt and CTRL) to perform editor functions . This editor can do everything. Emacs copies the contents of a file into a temporary buffer and we edit that. The file on disk doesn't change until we save the buffer. Like files, Emacs buffers have names. The name of a buffer is usually the same as the name of the file that we are editing.
Editing Modes of Emacs Mode Function Text Mode For writing text Latex Mode For formatting Latex and .tex files.
Emacs Commands Common file commands C-x C-f open file C-x C-s save current buffer C-x s save all open files C-x C-c exit emacs
Common movement commands C-d delete char C-f forward one char C-b back on char C-n next line C-p previous line C-a beginning of line C-e end of line C-o new line (enter) M-< beginning of file M-> end of file M-d delete word M-f forward one word M-b back one word
Cut and Paste C-[space] set a mark (start of region) C-x C-x jump to C-w cut the region from mark to current cursor location M-w copy region C-y paste region C-k cut to end of line, use multiple times to add to cut buffer
Indenting Text M-x Text mode (enter) C-j New Line C-j C-j Blank line between Paragraph M-x Paragraph indent text mode M-h Mark the Paragraph M-o M-s center text(align)
This Book is about emacs Outline Mode To start Outline mode M-x outline mode(enter) Example:- *Emacs Introduction *Preface **Scope of book This Book is about emacs **Technical Facts *Contents *Chapter-1 **Introduction Emacs Basic features
By using these commands we can move in outline mode. C-c C-n Move to the next heading. C-c C-p Move to the previous heading. C-c C-f Move to the next heading of the same level. C-c C-b Move to the previous heading of same level. C-c C-u Move up one heading level.
Few more commands on Outline mode C-c C-t Hides the body text C-c C-a show all hidden text C-c C-q hide-sublevels C-c C-^ outline-promote C-c C-v outline-demote C-y Paste text (copied)
Bibliography Learning GNU Emacs, 3rd Edition By Debra Cameron , James Elliott , Marc Loy Publisher: O'Reilly
Thank you