entity tomove over backward forward character C-b C-f word M-b M-f line C-p C-n go to line beginning (or end) C-a C-e sentence M-a M-e paragraph M- M-

Similar documents
Emacs manual:

VIP Quick Reference Card

Phil Sung. Special thanks to Piaw Na and Arthur Gleckler

Introduction to GNU Emacs

Mastering Linux by Paul S. Wang Appendix: The emacs Editor

Getting Started With XEmacs

7.1 INTRODUCTION 7.2 STARTING Emacs 7.3 Emacs SCREEN Menu Bar Text Mode Menu Mode Line Echo Line

UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division. P. N. Hilfinger

OFFICE OF INFORMATION TECHNOLOGY

Lab 1: Using Oz/Mozart IDE

Emacs Tutorial. Creating or Opening a File. Geog 405/605 Computer Programming for Environmental Research Fall 2018

GNU Info. for version 4.2, 23 March Brian J. Fox

BEG 6. 50p. Getting Started with the Emacs Screen Editor. An introduction to the Emacs screen editor, which is available on Unix systems.

Introduction to EMACS. Harriet Borton Academic and Research Computing

Lab 3, Part 1: Using Oz/Mozart IDE

Editors in Unix come in two general flavours:

! Emacs Howto Tutorial!

Princeton University COS 217: Introduction to Programming Systems Emacs Reference and Tutorial

Introduction to the Emacs Editor

Using nu/tpu on UNIX Last revised: 1/28/00

A beginner s guide to (GNU) Emacs 24

Answers to Even- Numbered Exercises

GNU Readline Library. Chet Ramey, Case Western Reserve University Brian Fox, Free Software Foundation

The Xemacs Editor. Overview

Stand-alone GNU Info. for version 6.5, 21 May Brian J. Fox and Texinfo maintainers

GNU Emacs REDUCE IDE. Francis J. Wright (

Statistics 202A - vi Tutorial

A Quick Introduction to Emacs. Jim Diamond CAR 409 Jodrey School of Computer Science Acadia University

Text Editors for Programmers. Dr. Prasad Kulkarni Michael Jantz Jamie Robinson

Computer Networks Vim and Emacs. Seongjin Lee

EVE WORKSHOP A practical introduction to the Extensible VAX Editor (2nd Edition)

Copyright c 1989, 1992, 1993 Free Software Foundation, Inc. Published by the Free Software Foundation 59 Temple Place - Suite 330 Boston, MA

COPYRIGHT The GNU History Library is Copyright by the Free Software Foundation, Inc.

MICROSOFT WORD 2010 BASICS

Editing and Running Standard ML under GNU Emacs

Computer Programming Lecture 3 이윤진서울대학교

Editing and Running Standard ML under GNU Emacs

Introduction to Linux

MS WORD. You can use it for writing letters, reports and so on.

Vanilla Lisp Shell (VLS)

VI Commands Cheat Sheets

Emacs Lisp Introduction

How Emacs Evolves to Suit Your Needs p. 1 How Emacs Differs from Other Software p. 3 Software and the User p. 4 Emacs Vocabulary and Conventions p.

Introduction to Linux Environment. Yun-Wen Chen

Using the Command-Line Interface

Copyright 1984 VisiCorp All Rights Reserved. Printed in U.S.A.

TABLE OF CONTENTS TABLE OF CONTENTS... 1 INTRODUCTION... 2 USING WORD S MENUS... 3 USING WORD S TOOLBARS... 5 TASK PANE... 9

Part I. UNIX Workshop Series: Quick-Start

Basic vi Commands. What is vi? To Get Into and Out Of vi

KEYBOARD SHORTCUTS AND HOT KEYS

vi filename edit filename starting at line 1

LispWorks for Macintosh. Editor User Guide. Version 6.1

Emacs: the Free Software IDE

BasicScript 2.25 User s Guide. May 29, 1996

Emacs and UNIX tricks. Adrian Perrig. Student in CS at EPFL. Version 3.0. June 28, Abstract

Menu Symbols. Menu Symbol. Key on Keyboard

Program Development Tools. Lexical Analyzers. Lexical Analysis Terms. Attributes for Tokens

Text Editors for Programmers. EECS-678 Staff

Smarty Mode A GNU XEmacs mode for editing Smarty templates. Vincent DEBOUT

Software Manual for Windows Z/EVES Version 2.3

Getting Started With UNIX Lab Exercises

Emacs (Version 23) Tutorial. University of Waterloo

Microsoft Word 2010 Part 1: Introduction to Word

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

DOCQSCRIBE 7.1 KEYBOARD SHORTCUTS

Magit-Popup User Manual

Getting Started with Emacs

Vim Habits. Detect inefficiency Find a quicker way Make it a habit

Author: Maarten Litmaath Version: 8. ///////////////// / contributions / /////////////////

Basic File Attributes

ag.el Documentation Release 0.45 Wilfred Hughes

Program Development Tutorial. Tutorials of Lisp Programming in Genera. Introduction

for Windows Copyrighted by Educational Programs and Software, Inc.

Smartparens Documentation

Creating Web Pages with SeaMonkey Composer

VIM Tips and Tricks. Search and replace a string in a document : :.,$s/search_string/replacement_string/g

Linux 下代码查看 编辑 编译与调试 (I) 袁华

COMPUTER SHORTCUTS Universal Help in almost every Windows program. Highlights from current position to end of line.

Using the Zoo Workstations

Introduction to Emacs. Contents. Bob Dowling 15 May 2006

Word - Basics. Course Description. Getting Started. Objectives. Editing a Document. Proofing a Document. Formatting Characters. Formatting Paragraphs

PS TEXT EDIT and PS TEXT FORMAT User s Guide

Emacs: The Software Engineer's \Swiss Army Knife"

Using the Unix system. UNIX Introduction

Carnegie Mellon. Linux Boot Camp. Jack, Matthew, Nishad, Stanley 6 Sep 2016

vi Primer Adapted from:

The first time you open Word

Using the Vi Text Editor

Welcome! Table of contents:

INF4820: Algorithms for Artificial Intelligence and Natural Language Processing. Common Lisp Fundamentals

Learning the vi text editor

Mastering the Visual LISP Integrated Development Environment

Introduction to 9.0. Introduction to 9.0. Getting Started Guide. Powering collaborative online communities.

FILE MAINTENANCE COMMANDS

DRAFT. Table of Contents About this manual... ix About CuteSITE Builder... ix. Getting Started... 1

2 Frequently Asked... Questions. 4 How Do I... 1 Working within... Entries

Get to know Word 2007 I: Create your first document Quick Reference Card

Get comfortable using computers

Downloaded from

Highline College. Office 2016 Video #01: Introduction to Office 2016 & Windows Explorer

Transcription:

Starting Emacs To enter GNU Emacs 21, just type its name: emacs To read in a file to edit, see Files, below. Leaving Emacs suspend Emacs (or iconify it under X) exit Emacs permanently Files read afileinto Emacs save a file back to disk save all files insert contents of another file into this buffer replace this file with the file you really want write buffer to a specified file version control checkin/checkout Getting Help C-z C-x C-c C-x C-f C-x C-s C-x s C-x i C-x C-v C-x C-w C-x C-q The help system is simple. Type C-h (or F1) and follow the directions. If you are a first-time user, type C-h t for a tutorial. remove help window C-x 1 scroll help window C-M-v apropos: show commands matching a string show the function a key runs describe a function get mode-specific information Error Recovery C-h a C-h c C-h f C-h m abort partially typed or executing command C-g recover a file lost by a system crash M-x recover-file undo an unwanted change C-x u or C-_ restore a buffer to its original contents M-x revert-buffer redraw garbaged screen C-l Incremental Search search forward search backward regular expression search reverse regular expression search select previous search string select next later search string exit incremental search undo effect of last character abort current search C-s C-r C-M-s C-M-r M-p M-n RET DEL C-g Use C-s or C-r again to repeat the search in either direction. If Emacs is still searching, C-g cancels only the part not done. cfl 1997 Free Software Foundation, Inc. Permissions on back. v2.2 1

entity tomove over backward forward character C-b C-f word M-b M-f line C-p C-n go to line beginning (or end) C-a C-e sentence M-a M-e paragraph M- M-} page C-x [ C-x ] sexp C-M-b C-M-f function C-M-a C-M-e go to buffer beginning (or end) M-< M-> scroll to next screen C-v scroll to previous screen M-v scroll left C-x < scroll right C-x > scroll current line to center of screen C-u C-l Killing and Deleting entity tokill backward forward character (delete, not kill) DEL C-d word M-DEL M-d line (to end of) M-0 C-k C-k sentence C-x DEL M-k sexp M-- C-M-k C-M-k kill region copy region to kill ring kill through next occurrence of char yank back last thing killed replace last yank with previous kill Marking C-w M-w M-z char C-y M-y set mark here exchange point and mark set mark arg words away mark paragraph mark page mark sexp mark function mark entire buffer C-@ or C-SPC C-x C-x M-@ M-h C-x C-p C-M-@ C-M-h C-x h Query Replace interactively replace a text string M-% using regular expressions M-x query-replace-regexp Valid responses in query-replace mode are replace this one, go on to next SPC replace this one, don't move, skip to next without replacing DEL replace all remaining matches! back up to the previous match ^ exit query-replace RET enter recursive edit(c-m-c to exit) C-r 2

When two commands are shown, the second is for delete all other windows C-x 1 other frame. split window, above and below C-x 2 C-x 5 2 delete this window C-x 0 C-x 5 0 split window, side by side C-x 3 scroll other window C-M-v switch cursor to another window C-x o C-x 5 o select buffer in other window C-x 4 b C-x 5 b display buffer in other window C-x 4 C-o C-x 5 C-o find file in other window C-x 4 f C-x 5 f find file read-only in other window C-x 4 r C-x 5 r run Dired in other window C-x 4 d C-x 5 d find tag in other window C-x 4. C-x 5. grow window taller C-x ^ shrink window narrower C-x grow window wider C-x } Formatting indent current line (mode-dependent) indent region (mode-dependent) indent sexp (mode-dependent) indent region rigidly arg columns insert newline after point move rest of line vertically down delete blank lines around point join line with previous (with arg, next) delete all white space around point put exactly one space at point TAB C-M- C-M-q C-x TAB C-o C-M-o C-x C-o M-^ M- M-SPC fill paragraph M-q set fill column C-x f set prefix each line starts with C-x. set face Case Change uppercase word lowercase word capitalize word uppercase region lowercase region The Minibuffer The following keys are defined in the minibuffer. M-g M-u M-l M-c complete as much as possible TAB complete up to one word SPC complete and execute RET show possible completions? fetch previous minibuffer input M-p fetch later minibuffer input or default M-n regexp search backward through history M-r regexp search forward through history M-s abort command C-g C-x C-u C-x C-l Type C-x ESC ESC to edit and repeat the last command that used the minibuffer. Type F10 to activate the menu bar using the minibuffer. 3

Buffers select another buffer list all buffers kill a buffer C-x b C-x C-b C-x k Transposing transpose characters transpose words transpose lines transpose sexps C-t M-t C-x C-t C-M-t Spelling Check check spelling of current word check spelling of all words in region check spellingofentire buffer M-$ M-x ispell-region M-x ispell-buffer Tags find a tag (a definition) M-. find next occurrence of tag C-u M-. specify a new tags file M-x visit-tags-table regexp search on all files in tags table M-x tags-search run query-replace on all the files M-x tags-query-replace continue last tags search or query-replace M-, Shells execute a shell command run a shell command on the region filter region through a shell command start a shell in window *shell* M-! M- C-u M- M-x shell Rectangles copy rectangle to register kill rectangle yank rectangle open rectangle, shifting text right blank out rectangle prefix each line with a string C-x r r C-x r k C-x r y C-x r o C-x r c C-x r t Abbrevs add global abbrev add mode-local abbrev add global expansion for this abbrev add mode-local expansion for this abbrev explicitly expand abbrev expand previous word dynamically C-x a g C-x a l C-x a i g C-x a i l C-x a e M-/ 4

any single character except a newline. (dot) zero or more repeats * one or more repeats + zero or one repeat? quote regular expression special character c c alternative ( or") grouping ( ::: ) same text as nth group n at word break b not at word break B entity match start match end line ^ $ word < > buffer ` ' class of characters match these match others explicit set [ ::: ] [^ ::: ] word-syntax character w W character with syntax c sc Sc International Character Sets specify principal language M-x set-language-environment show all input methods M-x list-input-methods enable or disable input method C- set coding system for next command C-x RET c show all coding systems M-x list-coding-systems choose preferred coding system M-x prefer-coding-system Info enter the Info documentation reader find specified function or variable in Info Moving within a node: C-h i C-h C-i scroll forward SPC scroll reverse DEL beginning of node. (dot) Moving between nodes: next node previous node move up select menu item by name select nth menu itembynumber (1 9) follow cross reference (return with l) return to last node you saw return to directory node go to any nodebyname Other: run Info tutorial quit Info search nodes for regexp n p u m n f l d g h q M-s 5

save region in register insert register contents into buffer save value of point in register jump to point saved in register C-x r s C-x r i C-x r SPC C-x r j Keyboard Macros start defining a keyboard macro C-x ( end keyboard macro definition C-x ) execute last-defined keyboard macro C-x e append to last keyboard macro C-u C-x ( name last keyboard macro M-x name-last-kbd-macro insert Lisp definition in buffer M-x insert-kbd-macro Commands Dealing with Emacs Lisp eval sexp before point eval current defun eval region read and eval minibuffer load from standard system directory C-x C-e C-M-x M-x eval-region M-: M-x load-library Simple Customization customize variables and faces M-x customize Making global key bindings in Emacs Lisp (examples): (global-set-key " C-cg" 'goto-line) (global-set-key " M-#" 'query-replace-regexp) Writing Commands (defun command-name (args) "documentation" (interactive "template") body) An example: (defun this-line-to-top-of-window (line) "Reposition line point is on to top of window. With ARG, put point on line ARG." (interactive "P") (recenter (if (null line) 0 (prefix-numeric-value line)))) The interactive spec says how to read arguments interactively. Type C-h f interactive for more details. Copyright cfl 1997 Free Software Foundation, Inc. v2.2 for GNU Emacs version 21, 1997 designed by Stephen Gildea Permission is granted to make and distribute copies of this card provided the copyright notice and this permission notice are preserved on all copies. For copies of the GNU Emacs manual, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6