Introduction to Emacs (a Unix, Linux, and Windows text editor)

Slides:



Advertisements
Similar presentations
CS 497C – Introduction to UNIX Lecture 8: The vi/vim Editor Chin-Chih Chang
Advertisements

A Guide to Unix Using Linux Fourth Edition
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
CS 497C – Introduction to UNIX Lecture 17: - The GNU emacs Editor Chin-Chih Chang
Vi Editor TA for ITIS3100: Xu Fei
CS 497C – Introduction to UNIX Lecture 10: The vi/vim Editor Chin-Chih Chang
CS 202 Computer Science II Lab Fall 2009 September 3.
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
CS 497C – Introduction to UNIX Lecture 9: The vi/vim Editor Chin-Chih Chang
CS465 - UNIX The vi Editor. Creating Files Most human-readable files on Unix are created with a text editor Unix has many, many different editors ed a.
Using Linux Text Editors. Use Non-Graphical Linux Text Editors Graphical Text Editor.
1 Unix Editors (ee, ed, ex, vi, vim) and Compilers (g77, gcc) Speaker: Li-Wen Chen Date:
1 Unix Text Editors Creating files on the Unix system.
謝耀偉編著 國立高雄大學應用數學系 Living in Emacs DeveloperWorks, IBM.
Chapter 3 Mastering Editors
EDITORS Lab 1 EECS 448 Dr. Fengjun Li and Meenakshi Mishra.
EMACS To quote the Emacs Manual: Emacs is the extensible, customizable, self- documenting real-time display editor. Emacs is an editor for plain-text,
Win’XP keyboard short cuts CTRL CTRL (Copy the selected item) CTRL+SHIFT CTRL+SHIFT (Create a shortcut to the selected item) CTRL+RIGHT ARROW CTRL+RIGHT.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Introduction to vi. Intro to vi vi is a ubiquitous text editor. It is available for Linux, Unix, Mac OS X and Windows (from and.
Introduction to vi (a Unix, Linux, and Windows text editor)
Microsoft Word 2000, Selecting and Editing Text ITSW 1401, Intro to Word Processing Instructor: Glenda H. Easter.
CSCI N241: Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Tools of Web Development 2: The Emacs Editor.
1 © 2014 John Urrutia. All rights reserved. Chapter 7 The “ Emacs “ Editor.
Editing, vi and Configuration Files Introduction to Linux June 16, 2009 Papeete, French Polynesia Hervey Allen.
UNIX Intro vi  vi is the standard UNIX text editor v Contents 1.Why use vi ? 2. vi Basics 3.Moving Around 4.Inserting Text.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
4 Editing files and Emacs Editing files The Emacs editor.
Chapter 5 Editing Text Files. Basic Concept A text editor works on a file buffer that is a memory copy of a disk file The disk file is not updated until.
Text editors Why should I use an editor ? It is very important to able to use at least one text mode editor a text mode editor is so useful on remote machines.
Unix Editors. u Editors in Unix come in two general flavours: –modal editors have "modes" v generally input mode and command mode –input mode allows entry.
Tony Kombol.  Why text edit?  Many programs and features require configuration ▪ Configuration is kept in files ▪ Usually in the /etc directory  Changes.
Unix Session IV.
CSCI-1411 F UNDAMENTALS O F C OMPUTING L AB Shane Transue Spring
Introduction to Unix – CS 21 Lecture 7. Lecture Overview Regular expressions revisited emacs versus vi Basic emacs and vi usage.
EMACS Jim Vallino Proud emacs user since The truth about editors Editors are like religions. Everyone has one that they like.
Text Editing February 2 nd, 2004 Class Meeting 3.
Chapter Three Text Editing1 System Programming Text Editing.
VI EDITOR University of Mississippi. Vi Editor What is Vi ? ▫Vi is a screen based editor. ▫The screen of your terminal will act as a window into the file.
Getting Started with Linux Linux System Administration Editors.
Lesson 4-Mastering the Visual Editor. Overview Introducing the visual editor. Working in an existing file with vi. Understanding the visual editor. Navigating.
Chapter Three The UNIX Editors.
Linux Class #03. File Access Permissions Types of users in Linux: Local User (u) Group User (g) Other User (o) Each User can have 3 types of permissions:
Text editing and more basic commands CS 2204 Class meeting 3 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Agenda Using vi Editor Starting vi Session Command / Input Modes Entering Text Editing Text Saving Edited File Aborting Editing Session.
Editing, vi and Configuration Files Introduction to Unix May 25, 2008 Rabat, Morocco Hervey Allen.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
1 Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
Use a Real Editor! Using Emacs. Session Goals To understand why we use Emacs To understand how you can use Emacs to enhance your productivity in editing.
Getting Started with Linux Linux System Administration Editors.
Day 5 Pico Editor David A. Gaitros Department of Computer Science Florida State University.
 The clipboard is a temporary storage area  The cut or copy commands place information on the CLIPBOARD  There are two types of clipboards: – System.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 14 – UNIX vi text editor.
Chapter 8. Copyright 2003, Paradigm Publishing Inc. CHAPTER 8 BACKNEXTEND 8-2 LINKS TO OBJECTIVES Delete, Move, Copy, and Paste Text Delete, Move, Copy,
By Justin Higgins. What is a text editor? If you’ve ever used Microsoft word you know what a text editor is (albeit a bloated one). When you write a program.
CS:414 introduction to Unix and Linux
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
Vim basics Vi IMproved.
Guide To UNIX Using Linux Third Edition
Editing, vi and Configuration Files
Vi Introduction Tony Kombol.
Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
Linux System Administration Editors
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
Computer Training.
Emacs CSC 135.
Run Java file with Window cmd
Introduction to Programming
The Emacs Editor Read: Forouzan, Appendix C
Day 5 Emacs Editor David A. Gaitros Department of Computer Science
Presentation transcript:

Introduction to Emacs (a Unix, Linux, and Windows text editor)

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)

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

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.

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.

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

Emacs command copy-paste steps: 1.move to beginning of block 2.C-space or mark 3.move to end of block 4.M-wcopy 5.move to where you wish to insert 6.C-yyank/paste

Emacs command cut-paste steps: 1.move to beginning of block 2.C-space or mark 3.move to end of block 4.C-wdelete/cut 5.move to where you wish to insert 6.C-yyank/paste

Remember… C-x C-cQuit Emacs (without saving). C-x C-sExit Emacs (saving any changes). C-x uUndo. C-gQuit current command.