EMACS Jim Vallino Proud emacs user since 1979. The truth about editors Editors are like religions. Everyone has one that they like.

Slides:



Advertisements
Similar presentations
The continuing story of Vim Bram Moolenaar
Advertisements

CS 497C – Introduction to UNIX Lecture 8: The vi/vim Editor Chin-Chih Chang
Utilizing the GDB debugger to analyze programs Background and application.
A Guide to Unix Using Linux Fourth Edition
XEmacs Tips for Programmers A lunchtime seminar. XEmacs Background  XEmacs not Emacs on Linux hosts  XEmacs is a specialized LISP interpreter  Built-in.
Introduction to EMACS and XEMACS CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
One Editor To Rule Them All Dan Berger Titus Winters
CS 497C – Introduction to UNIX Lecture 17: - The GNU emacs Editor Chin-Chih Chang
Linux+ Guide to Linux Certification, Second Edition
Guide To UNIX Using Linux Third Edition
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
Introduction to EMACS and XEMACS CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
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.
CS 497C – Introduction to UNIX Lecture 19: - The GNU emacs Editor Chin-Chih Chang
1 Windows and Beginning Data Manipulation HRP223 – 2013 Oct 9, 2012 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
PART A Emac Lisp   Emac Lisp is a programming language  Emacs Lisp is a dialect.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
CSCI 330 T HE UNIX S YSTEM Editing files. E DITOR C ONCEPTS Editing a file is to modify the content of a file Text editor: Enter and modify text in a.
Using Linux Text Editors. Use Non-Graphical Linux Text Editors Graphical Text Editor.
MODELLER hands-on Ben Webb, Sali Lab, UC San Francisco Maya Topf, Birkbeck College, London.
Introduction to Shell Script Programming
Chapter 3 Mastering Editors
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Project Management November.
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Introduction to Unix – CS 21 Lecture 9. Lecture Overview Shell description Shell choices History Aliases Topic review.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Linux+ Guide to Linux Certification Chapter Four Exploring Linux Filesystems.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Vim Editor and Unix Command gcc compiler Computer Networks.
CS240 Computer Science II Introduction the Unix File System and File Related Utilities Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
CSCI N241: Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Tools of Web Development 2: The Emacs Editor.
Introduction to Unix – CS 21 Lecture 8. Lecture Overview More detail on emacs and vi Regular expression matching in emacs and vi.
Editing, vi and Configuration Files Introduction to Linux June 16, 2009 Papeete, French Polynesia Hervey Allen.
Editors And Debugging Systems Other System Software Text Editors Interactive Debugging Systems UNIT 5 S.Sharmili Priyadarsini.
Programmable Logic Training Course HDL Editor
A Tutorial on Introduction to gdb By Sasanka Madiraju Graduate Assistant Center for Computation and Technology.
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.
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.
Getting Started with Linux Linux System Administration Editors.
Chapter Three The UNIX Editors.
40 Years and Still Rocking the Terminal!
1 CSE306 Operating Systems Projects CVS/SSH tutorial.
PacNOG 6: Nadi, Fiji Editing, vi & Configuration Files Hervey Allen Network Startup Resource Center.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
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.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Amir Afzal UNIX Unbounded, 5th Edition Copyright ©2008 Chapter 6: The vi Editor – Last Look 1 of 55 Copyright ©2008 by Pearson Education, Inc. Upper Saddle.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
Introduction to Emacs (a Unix, Linux, and Windows text editor)
Getting Started with Linux Linux System Administration Editors.
Linux Administration Working with the BASH Shell.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
Being Productive With Emacs Part 2
Guide To UNIX Using Linux Third Edition
Introduction to Computers
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
You do want to create and edit programs?
Emacs CSC 135.
CSCI The UNIX System Shell Startup and Variables
Run Java file with Window cmd
Introduction to Emacs J. Caldwell, N. McCaw, D. Powell
The Emacs Editor Read: Forouzan, Appendix C
Emacs for Python Programming
CSCI The UNIX System Editing files
Presentation transcript:

EMACS Jim Vallino Proud emacs user since 1979

The truth about editors Editors are like religions. Everyone has one that they like.

What does emacs stand for? Editor MACroS Eight Megs And Constantly Swapping EMACS Makes A Computer Slow EMACS Makes All Computing Simple EMACS May Allow Customized Screwups Escape Meta Alt Control Shift Eventually Malloc()s All Computer Storage Extensible Macro System

How long has emacs been around? Many variants have been developed I first used it at Bell Labs in 1979 Current favorites  GNU Emacs  XEmacs

How do you use emacs? Start it and use it Current versions have menu interface so you do not have to remember lots of (any?) key sequences  Ctrl-G terminates any command You will quickly customize it to your liking

Customizing emacs Under the hood emacs is run by elisp Standard emacs library has elisp code to do just about everything  Including vip-mode for the “must have vi” crowd ~/.emacs executed on startup to configure editor to your liking Hack your way into a stupor writing elisp functions

Can you do X in emacs? Yes!  You may have to write some elisp code to get it to work though.

Typical things done in.emacs Fix braindead defaults for Ctrl-H and delete (global-set-key "\C-h" 'delete-backward-char) (global-set-key [delete] 'delete-char) (global-set-key "\M-h" 'help-command) Set path to personal elisp library (defvar emacslib (expand-file-name "~/lib/emacs") Set screen colors (set-background-color "black") (set-foreground-color "white") (set-cursor-color "white") Trigger modes (setq auto-mode-alist (cons '("\\.txt\\'". indented-text-mode) auto-mode-alist))

More in.emacs Load your personal keybindings Custom-set-variables controlled from within emacs

Searching Standard Incremental Regular expression

Emacs modes Always editing in some “mode” Mode usually based on file extension  Can set manually  Force in file: -*- Perl -*- Name your favorite language there’s probably a mode for it

What do you get with a mode? Set of local key bindings  Some come transparently like auto indent Templates Syntax sensitive indenting Abbreviations Compilation commands Hook function to run when mode is loaded Customizing a mode

Version control RCS and CVS builtin Register file initially Check in/out Add revision coments Compare revisions

Help system Ctrl-H is default keybinding Operation available  a – apropos  b – key bindings  c, k – describe key sequence  f – describe function  i – info command  m – describe mode  v – describe variable  w – where is command bound

Emacs terms Buffer – holds a file being edited; may or may not be visible Window – a display region for a file Frame – an Emacs “window” managed by the local windowing toolkit; may contain multiple windows Multiple frames are allowed Mark – a remembered hidden location Point – current location of cursor

Miscellaneous modes Directory Shell Vip  If you can’t live without vi you can live with emacs with vip-mode  Full functionality of vi and ex

What good is vi? It’s available on every Unix system. It starts in an instant

What’s the difference between emacs and vi? The difference between emacs and vi is like the difference between making love and masturbation. That is to say: vi will always be there when you need it. -- signature for Patrick Dockhorn,