Emacs: Editing, Writing and Programming

Size: px
Start display at page:

Download "Emacs: Editing, Writing and Programming"

Transcription

1 Emacs: Editing, Writing and Programming KOM Computer Workshop Release 1.20 September 30, Introduction Editing of text is probably one the functions you will need the most from the UNIX system. Lots of different programs exist for performing this exact task - some easier to use than others. And some more versatile than others. Starting with the simple tools, one could mention the text-based pico which uses the same editing facilities as found in the pine mail reader. A series of attempts to copy the Windows Word(pad) also exists - such as gedit, nedit, etc. These are self-explanatory and doesn t really offer much in the area of versatility. Instead lets get down to business and make clear once and for all that the FSF GNU Emacs is the way to go when editing your Latex report, source code, system files, etc. Many users stall the first time they re presented with the Emacs user interface - the shortcut keys are not the same as seen in Microsoft environments and it is not WYSIWYG. However - what is not apperant at first sight is the incredible versatility you will learn to appreciate. Among the neatest features one can mention: Syntax highlighting - makes your source code a lot easier to read and edit. Keyboard shourtcuts for everything - give your mouse a rest and save yourselves from straining your hands. Total integration with the Latex document writing system and version control. Total lack of annoying Office assistants, auto correct facilities and other functions for aiding dumb users :-) You may at first not believe that emacs is that great a program - nevertheless, experience shows that nearly everybody learns to appreciate it at some point in their carreer at the institute. So why not learn it now and save yourself a lot of trouble? If you don t beleive it, just ask a student at one of the last semesters... 2 Start Emacs The first thing to do (of course) is to fire up the program. To do so, type at your UNIX prompt: alfred@lada> emacs & 1

2 If everything goes well, you should see a window popping up on your screen presenting you with a welcome message and you re ready to use emacs. If for some reason you would like to open emacs in the terminal window instead of creating its own window, type: alfred@lada> emacs -nw this comes in handy when you re using a ssh connection without graphical capabilities. Last but not least, if you must use those mouse clicks, emacs can probably be started from the menu of whatever window manager you use. 3 Edit Files Buffers Before starting, it is neccesary to mention that Emacs operates with so-called buffers. This simply means that every file you open becomes a buffer which you can edit. Buffers can also contain lots of other stuff like output from an external program, but for now we will consider a buffer as being a file you have opened. Opening a file The first thing to do with your newly started emacs is of course to load a text file into a buffer. In order to do this, a little shortcut terminology is neccesary. The Control key: Nothing unusual here. On the left part of your keyboard you will find the Control key. Whenever you need to use the control key in a shortcut, it will be denoted as: C-<some key>.. which means that you press the control key and the other key simultaneously. To open a file you must press: C-x C-f This will bring up a Find file dialog in the bottom at the Emacs window where you can type the path and name of your text file. Lets say that you want to open the file myfile.txt in your homedirectory. You can choose to type in manually: Find file: /myfile.txt and hit enter. But why not make it easy on yourself? Try typing only my and hit the TAB key. Assuming you have only one file starting with my, emacs will complete the filename for you. If you have more than one file starting with my, a window showing the possible files will pop up. Now you can either supply more letters and hit TAB again or you can click the file you want with the mouse and hit enter. Basic editing Having opened your file, you can move around with the cursor keys and insert text as usual. To copy a line of text, the following procedure can be used: Move the cursor to the beginning of the line. Hit C-k, C-y, move the cursor to a new position and hit C-y. Of course you can also use the normal way of copy/paste in UNIX. Select some text with the mouse, place the cursor elsewhere and hit the middle mouse button. 2

3 Writing/saving a file Having edited you file, you may want to save the results. Do this by pressing C-x C-s. If you want to write it to another filename, use C-x C-w instead and supply the filename in the dialog: Write file: /myfile2.txt Kill your file Finished editing your file? Get rid of it by typing: C-x k (dont press down the control key when typing the k ). The Undo shortcut Eventually you will type something wrong within your emacs or accidentally start a function that you don t want to. The easy way out of whatever you got into is C-g ( gundo?). Try activating the Save as with C-w and abort it with C-g. Exiting emacs At some point you re finished editing and you need to exit emacs. This is done by pressing C-x C-c. If all your buffers are saved, emacs will exit at once. However - if you have unsaved work, you will be prompted whether you want to save it first... More shortcuts The Meta key: Another key widely used in emacs is the Meta key. Depending on which terminal you use, this key is mapped differently. If you use a PC keyboard (which is probably the case), the Meta key is mapped to either your left ALT key or to your left Windows key. Whenever you have to use the Meta key, it is shown as: M-<some key> The following will plot a mandelbrot fractal for you (useful?): M-x mandelbrot..this means that after pressing Meta and x simultaneously you should type mandelbrot and hit return. Here you can also use the TAB key if you re too lazy to type in the full command. Listing all the Emacs commands here would be a waste of bytes and time - instead take a look at the Emacs reference card found on Play around with the commands and get familiar with the basic Emacs functions before proceeding to the next section - here you will need your basic editing skills. 4 Configure Emacs The FSF GNU Emacs can be configured in a myriad of ways and this small section will only give you hints on how to do basic configuration. Emacs will be configured in the language Lisp in the variant Emacs Lisp. In many situations you will often have to just set variables and you do not have to know any Lisp programming to do so. Configuration of Emacs is a very convinient way of making everyday work much easier. Configure Emacs with /.emacs GNU Emacs will read the file /.emacs ($HOME/.emacs) and use the contents to configure how Emacs will behave when you use it. A raw (unconfigured) Emacs will probably, after some use, not behave like you want it to do. Open the.emacs file and write configuration details into the file. The next time you start Emacs the new configuration will take effect. 3

4 emacs & Once in Emacs open the.emacs file with C-x C-f and enter filename /.emacs and press return. (standard-display-european t) ; show european characters (setq user-full-name "Alfred Alfredsen") ; set user fullname (message "Hello, \%s." (user-full-name)) ; say hello to user Instead of restarting Emacs you can execute the following function M-x eval-buffer. Configure Emacs with /.emacs and $HOME/etc/emacs/init.el Soon you.emacs configuration file will be a messy place and all cluttered up. A very efficient scheme for undoing the mess is to use.emacs only for loading the real configuration file. Put the following in your.emacs file ;; load main personal Emacs initialization file (setq load-path (cons (expand-file-name "~/etc/emacs") load-path)) (defvar emacs-startup-file (expand-file-name "~/etc/emacs/init")) ;; recompile initialization file if nescesary ;; Recompile "emacs.el" if nessasary (let ((file (concat emacs-startup-file ".el")) (filec (concat emacs-startup-file ".elc"))) (if (file-newer-than-file-p file filec) (byte-compile-file file))) ;; Now, load everything it! (load emacs-startup-file nil t) You should now put everything configuration detail and initialization into /etc/emacs/init.el. You can use the directory /etc/emacs for further configuration files or for Emacs Lisp packages that you download for the extension of the basic GNU Emacs. Existing Emacs Extensions The existing extensions can be found in the site-lisp area alfred@lada> ls /afs/ies.auc.dk/sw/pack/emacs-20.7/share/emacs/site-l Always substitute the directory emacs-20.7 with the most current version of Emacs. Find the most current version of emacs with alfred@lada> emacs --version GNU Emacs 20.7 Copyright (C) 1999 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. 4

5 Setup Colors for Source Code and Texts One example where configuration of GNU Emacs will provide nice results for you to see is with coloring of fonts (global-font-lock-mode t) (setq fock-lock-maximum-decoration t) These two lines will enable almost any editing mode with colors. To setup different colors than the default the following lisp lines will work (setq font-lock-face-attributes ((font-lock-comment-face "Blue") (font-lock-string-face "Red") (font-lock-doc-string-face "Black") (font-lock-keyword-face "SteelBlue") (font-lock-function-name-face "Black") (font-lock-variable-name-face "Black") (font-lock-type-face "Purple") (font-lock-reference-face "Black") (font-lock-string-face "red3"))) New Keyboard Shortcuts Many people at first find Emacs shortcuts strange so why not enstrange people even more by defining your own shortcuts. You should use Control with C (C-c) as it is reserved for user definition of commands. The following lines will define a prefix, a keymap and set a global key for accessing the keymap. (defun Ctl-C-prefix ()) (setq Ctl-C-keymap (make-keymap)) (global-set-key "\C-c" (Ctl-C-prefix)) The only task left is to define which C-c key should do what. Here are a few examples of what you can do (define-key Ctl-C-keymap "c" compile) (define-key Ctl-C-keymap "e" eval-buffer) (define-key Ctl-C-keymap "n" next-error) (define-key Ctl-C-keymap "f" auto-fill-mode) (define-key Ctl-C-keymap "g" goto-line) (define-key Ctl-C-keymap "$" ispell-buffer) (define-key Ctl-C-keymap "-" dabbrev-expand) Further Emacs Configuration For more advanced setup an example is provided at Emacs Course Materials You should also browse the Emacs and related software packages for documentation and information. Use C-h i to reach the GNU information system and choose Emacs to view the documentation. 5

6 5 Edit Latex Files latex-mode When editing L A TEXfiles it is nice to have correct coloring of the L A TEXcommands etc. When you start an Emacs on the UNIX system you should automaticly be set. If this does not happen you should add the following to your.emacs: (require tex-site tex-site ) This will use AUC-TeX as the default mode for editing LaTeX files. For more information on AUC-TeX see the next section. You can see that you are using the LaTeX in Emacs since the should be a LaTeX in your Emacs status bar. AUC-TeX First of all. AUC-TeX can be found on SunSITE.dk. AUC-TeX gives you a lot of advantages through keyboard short-cuts and through the menues. AUC-TeX used together with Ref-TeX makes a strong pair for writing reports. For information about Ref-TeX see the Ref-TeX section. Basicly the advantages of AUC-TeX is in when inserting environments, changing fonts and building a part of the document or the whole document. For a more in-depth information on AUC-TeX consult the info-pages on AUC-Tex. In this guide the focus will be on the keyboard short-cuts since you can easily enough navigate in the menues. For instance to change to a bold font you type nearly nothing. By pressing : C-c C-f C-b textbf however AUC-TeX gives you that for AUC-TeX will insert the textbf. To see how which fonts AUC-TeX will insert you can press: C-c C-f h As mentioned above to AUC-TeX can also be used to insert L A TEX environments. To insert an environment use the short-cut: C-c C-e Use the tab-key to see which enviroments you can insert. AUC-TeX can also insert section command. To insert a section or chapter press: C-c C-s Finally you can build and view you document from Emacs. AUC-TeX has both support for compiling your master file (see the next section for more information) and the buffer you are currently working in. To compile the document you press : C-c C-c this will build the master file. To just compile the buffer press : C-c C-b. To compile you document you need to have setup the master file. Master File In AUC-TeX the master file refers to the file that contains the whole document. This means that if you are writing a large document like a technical report the master file is the file where all the sections and chapter are put together. In the case of a small document the master file is just the file it self. Basicly you can set the master file in two different ways. You can either set it staticly or you can make AUC-TeX ask you what the master file is. To set a static master file insert this in your.emacs file: (setq TeX-master /path/to/master/file ) 6

7 To have AUC-TeX ask you insert: (setq TeX-master nil) This will insert the following in the bottom of your tex file: %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: If TeX-master: is t it means the file is a master file. Other wise it is a path to the master file. To use AUC-TeX to build you document insert the following in your emacs start-up file to have some reasonable values: (setq TeX-region (concat (user-login-name) "-region")) (setq TeX-command-default "latex") RefTeX-mode Ref-TeX hooks in nicely with AUC-TeX and also uses the master file. You can use Ref-TeX when you are inserting reference to sections, figure, and litterature. You can also use Ref-TeX to insert unique labels and navigate your document. Ref-TeX is quite interactive and you can normally get some help pressing the?-key. To use Ref-TeX insert the following in your emacs startup file: (add-hook LaTeX-mode-hook (lambda () (reftex-mode t))) (setq reftex-plug-into-auctex t) The most common functions is: inserting reference to figures or section, Inserting bibliography reference, following a cross-reference, and seeing a table of content. To make a label - type: C-c (. To insert af reference to a label type: C-c ). To insert a cite to a piece of litterature type: C-c [. To jump to a label when you are standing on it type: C-c &. And to build a table of content of your document type: C-c = 6 Edit Source Code: Java, Matlab, C Emacs is the one most used tool for writing source code. There are many tools in GNU Emacs that will help you to write source code better and unfortunately not all programmers use these tools. Here is an overview of the most important ones. To summarize the conclusion first you will have to use emacs tags (etags), dynamic (and hippie) abbreviation expansion to instantly expand on variables and more, font lock mode to edit source code with colors, use GUD mode (gnu universal debugger) to debug your programs, use the modifiable compile command, etc. Some of these issues are explained below. 7

8 Change Editing Mode for Source Code Normally GNU Emacs will change the editing mode based on the suffix of the current file you are editing. To add additional modes please configure GNU Emacs with the automode feature (setq auto-mode-alist (append (("\\.cps$". postscript-mode) ("\\.ps$". postscript-mode) ("\\.py$". python-mode) ("\\.po[tx]?\\ \\ \\.po\\.". po-mode) ("\\.s?html?\\ ". html-helper-mode) ) auto-mode-alist)) If you even stranger editing modes than this then change the major editing mode by hand with M-x c-mode or any other mode you need for editing the source code. Dynamic Abbreviation Expansion: M-/ When you program you should develop a habit of loading most of your files with source code into buffers of Emacs. Configure your personal Emacs settings with this (require iswitchb) (iswitchb-default-keybindings) (require uniquify) (setq uniquify-buffer-name-style forward) (load-library "yic-buffer") Now you can change between buffers more easily and now use C-x b to change buffers in the follwing way: When pressing C-x b to change buffers then you can use C-s to scroll forward in buffers and C-r to scroll backwards. Also you can type in part of the buffer name to reduce the search possibilities. As an example you can type in scr to get to the *scratch* buffer. The lisp package uniquify see to that if you have several files opened in different buffers then they have unique names based on directory names instead of the <1>, <2>, and so forth numbering scheme. Also develop the habit of using manual pages and show them within Emacs by using M-x man and enter the manual page you want to view. Keep these manual pages in buffers, you will need them afterwards when making dynamic abbreviation expansion. Dynamic abbreviation expansion: Use the M-/ to complete a word based on open buffers in Emacs. This is one of Emacs most advanced and useful features which can be used in any buffer in any mode. When editing source code you can use M-/ to expand either function names or variable names based on the content of all open buffers. Therefore it is useful to keep all files of your coding project along with manual pages open while editing! The important of dynamic abbreviation expansion cannot be overstated! Font Lock Mode For every buffer you edit most often you can color the contents based on the syntax. You have to issue a M-x font-lock-mode to turn coloring on or off. Please see section 4 for more information on configuring font coloring based on syntax in GNU Emacs. 8

9 Compile Command One useful feature of GNU Emacs is that it can automatically invoke the gmake or make program in the directory you work in. An example of configuring the compile command is (setq compilation-window-height 2) (setq compile-command "gmake -k") (setq compilation-scroll-output nil) You can then add a keyboard shortcut like this or (define-key Ctl-C-keymap "0" compile) (define-key Ctl-C-keymap "c" compile) Please see section 4 for more information on configuring your keyboard setup. 9

Introduction to the Emacs Editor

Introduction to the Emacs Editor Introduction to the Emacs Editor Scott D. Anderson Wellesley College Scott.Anderson@acm.org c Fall 2004 1 What is Emacs? Emacs is an editor: a program that allows you to modify files. Many of you have

More information

Editors in Unix come in two general flavours:

Editors in Unix come in two general flavours: Review notes #2 1. Unix account 2.Login: with a terminal or using telnet or ssh 3. Change password 4. Must logout! 5. Emails: (a) mutt (b) pine (c).forward file 6.Basic commands: who, ls, cat, more, man

More information

The Xemacs Editor. Overview

The Xemacs Editor. Overview The Xemacs Editor Editors are used to create and modify simple text files. The public domain editor emacs has achieved great popularity because of its many features and its wide availability. Emacs was

More information

Introduction to EMACS. Harriet Borton Academic and Research Computing

Introduction to EMACS. Harriet Borton Academic and Research Computing Introduction to EMACS Harriet Borton Academic and Research Computing Contents Starting Emacs 2 Parts of the Emacs Screen 3 Basic Editing 4 Entering text 4 Moving around in a file 4 Deleting text 4 Undoing

More information

Configuration and Customisation

Configuration and Customisation Configuration and Customisation Jeremy Sanders October 2011 1 Introduction Applications in Unix are often very configurable, but it takes some experience to know what s achievable and how to do it. I can

More information

Getting Started With XEmacs

Getting Started With XEmacs Getting Started With XEmacs July 1994 (General Public License upgraded, January 1991) Richard Stallman and Rashmi Goyal Copyright c 1985, 1986, 1988 Richard M. Stallman. Copyright c 1991, 1992, 1993, 1994

More information

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

2 Getting Started. Getting Started (v1.8.6) 3/5/2007 2 Getting Started Java will be used in the examples in this section; however, the information applies to all supported languages for which you have installed a compiler (e.g., Ada, C, C++, Java) unless

More information

Tutorial 1: Unix Basics

Tutorial 1: Unix Basics Tutorial 1: Unix Basics To log in to your ece account, enter your ece username and password in the space provided in the login screen. Note that when you type your password, nothing will show up in the

More information

! Emacs Howto Tutorial!

! Emacs Howto Tutorial! Emacs Howto Tutorial According to a description at GNU.org, Emacs is the extensible, customizable, selfdocumenting real-time display editor. It offers true LISP -- smoothly integrated into the editor --

More information

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

Princeton University COS 217: Introduction to Programming Systems Emacs Reference and Tutorial Princeton University COS 217: Introduction to Programming Systems Emacs Reference and Tutorial Part 1: Reference This reference assumes that Emacs is configured using the.emacs file provided to COS 217

More information

Phil Sung. Special thanks to Piaw Na and Arthur Gleckler

Phil Sung. Special thanks to Piaw Na and Arthur Gleckler Being Productive With Emacs Part 1 Phil Sung sipb iap emacs@mit.edu http://stuff.mit.edu/iap/emacs Special thanks to Piaw Na and Arthur Gleckler Emacs is the extensible, customizable, self documenting

More information

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

7.1 INTRODUCTION 7.2 STARTING Emacs 7.3 Emacs SCREEN Menu Bar Text Mode Menu Mode Line Echo Line 7 The Emacs Editor This chapter covers the Emacs editor. Emacs is not distributed with all UNIX systems. However, it is available on most Linux systems. The purpose of this chapter is to introduce you

More information

VIP Quick Reference Card

VIP Quick Reference Card VIP Quick Reference Card Loading VIP (Based on VIP 3.5 in GNU Emacs 18) Just type M-x vip-mode followed by RET VIP Modes VIP has three modes: emacs mode, vi mode and insert mode. Mode line tells you which

More information

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

Mastering Linux by Paul S. Wang Appendix: The emacs Editor Mastering Linux by Paul S. Wang Appendix: The emacs Editor The emacs editor originally was developed at the MIT Laboratory for Computer Science. As emacs gained popularity, it was ported to UNIX and Linux

More information

Getting Started (1.8.7) 9/2/2009

Getting Started (1.8.7) 9/2/2009 2 Getting Started For the examples in this section, Microsoft Windows and Java will be used. However, much of the information applies to other operating systems and supported languages for which you have

More information

FILE MAINTENANCE COMMANDS

FILE MAINTENANCE COMMANDS Birla Institute of Technology & Science, Pilani Computer Programming (CS F111) Lab-2 ----------------------------------------------------------------------------------------------------------------------

More information

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical

More information

Using the Zoo Workstations

Using the Zoo Workstations Using the Zoo Workstations Version 1.86: January 16, 2014 If you ve used Linux before, you can probably skip many of these instructions, but skim just in case. Please direct corrections and suggestions

More information

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

BEG 6. 50p. Getting Started with the Emacs Screen Editor. An introduction to the Emacs screen editor, which is available on Unix systems. Getting Started with the Emacs Screen Editor An introduction to the Emacs screen editor, which is available on Unix systems. AUTHOR Information Systems Services University of Leeds DATE March 2000 EDITION

More information

Introduction to GNU Emacs

Introduction to GNU Emacs Information Technology Rice University Document UNIX 5 July 11, 2002 Introduction to GNU Emacs Abstract This document explains how to use GNU Emacs to create and edit text files, use RMAIL to read mail,

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

TNM093 Practical Data Visualization and Virtual Reality Laboratory Platform

TNM093 Practical Data Visualization and Virtual Reality Laboratory Platform November 8, 2016 1 Introduction The laboratory exercises in this course are to be conducted in an environment that might not be familiar to many of you. It is based on open source software. We use an open

More information

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-

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- 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

More information

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.

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 p. xxix 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. 7 Key Conventions p. 9 Emacs and

More information

CROMWELLSTUDIOS. Content Management System Instruction Manual V1. Content Management System. V1

CROMWELLSTUDIOS. Content Management System Instruction Manual V1.   Content Management System. V1 Content Management System Instruction Manual V1 www.cromwellstudios.co.uk Cromwell Studios Web Services Content Management System Manual Part 1 Content Management is the system by which you can change

More information

Getting Started with Emacs

Getting Started with Emacs Getting Started with Emacs Emacs is the text editor with everything. Learn the basics--maybe you'll even want to keep your calendar on it. by Charles Curley This article is a whirlwind introduction to

More information

CSE341: Programming Languages Using SML and Emacs Winter 2018

CSE341: Programming Languages Using SML and Emacs Winter 2018 CSE341: Programming Languages Using SML and Emacs Winter 2018 Contents 1 Overview................................................. 1 2 Using the Department Labs...................................... 1

More information

A beginner s guide to (GNU) Emacs 24

A beginner s guide to (GNU) Emacs 24 A beginner s guide to (GNU) Emacs 24 Matthew Chan, themattchan.com, last updated November 2014 Part 0: Getting started Why Emacs? Emacs is the One True Editor. Emacs can do anything you can possibly think

More information

Introduction. SSH Secure Shell Client 1

Introduction. SSH Secure Shell Client 1 SSH Secure Shell Client 1 Introduction An SSH Secure Shell Client is a piece of software that allows a user to do a number of functions. Some of these functions are: file transferring, setting permissions,

More information

Arduino IDE Friday, 26 October 2018

Arduino IDE Friday, 26 October 2018 Arduino IDE Friday, 26 October 2018 12:38 PM Looking Under The Hood Of The Arduino IDE FIND THE ARDUINO IDE DOWNLOAD First, jump on the internet with your favorite browser, and navigate to www.arduino.cc.

More information

XSLT-process minor mode

XSLT-process minor mode XSLT-process minor mode for version 2.2 January 2003 by Ovidiu Predescu and Tony Addyman Copyright c 2000, 2001, 2002, 2003 Ovidiu Predescu. Copyright c 2002, 2003 Tony Addyman. All rights reserved. Distributed

More information

Version Operator Orientation. TIMMS Client. A guide to using the TIMMS System. Training & Navigation Notes

Version Operator Orientation. TIMMS Client. A guide to using the TIMMS System. Training & Navigation Notes Version 7.2.4 Operator Orientation TIMMS Client A guide to using the TIMMS System Training & Navigation Notes Disprax Pty Ltd 2015 WHAT IS TIMMS? TIMMS Stands for: Total Industry Management and Marketing

More information

Lab 1: Using Oz/Mozart IDE

Lab 1: Using Oz/Mozart IDE Lab 1: Using Oz/Mozart IDE February 5, 2009 Using Oz/Mozart can be done in 2 ways: 1. interactive programming with OPI (Oz Programming Interface) (oz) 2. compiling Oz programs with Oz compiler (ozc) and

More information

CS251 Programming Languages Handout # 47 Prof. Lyn Turbak May 22, 2005 Wellesley College. Scheme

CS251 Programming Languages Handout # 47 Prof. Lyn Turbak May 22, 2005 Wellesley College. Scheme CS251 Programming Languages Handout # 47 Prof. Lyn Turbak May 22, 2005 Wellesley College 1 Scheme Overview Scheme Scheme is a block-structured, lexically-scoped, properly tail-recursive dialect of Lisp

More information

Physics REU Unix Tutorial

Physics REU Unix Tutorial Physics REU Unix Tutorial What is unix? Unix is an operating system. In simple terms, its the set of programs that makes a computer work. It can be broken down into three parts. (1) kernel: The component

More information

Code::Blocks Student Manual

Code::Blocks Student Manual Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of

More information

A new clients guide to: Activating a new Studio 3.0 Account Creating a Photo Album Starting a Project Submitting a Project Publishing Tips

A new clients guide to: Activating a new Studio 3.0 Account Creating a Photo Album Starting a Project Submitting a Project Publishing Tips Getting Started With Heritage Makers A Guide to the Heritage Studio 3.0 Drag and Drop Publishing System presented by Heritage Makers A new clients guide to: Activating a new Studio 3.0 Account Creating

More information

emacs Know your tools emacs keys Minimal number of key commands for emacs GNU Emacs is an extensible, customisable text editor-and more

emacs Know your tools emacs keys Minimal number of key commands for emacs GNU Emacs is an extensible, customisable text editor-and more Know your tools slide 1 emacs slide 2 abad workman blames his tools, Cambridge Idioms Dictionary we will examine: emacs, etags, grep, diff, patch, gcc, gm2, cvs, gdb, GNU Emacs is an extensible, customisable

More information

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

Text Editors for Programmers. Dr. Prasad Kulkarni Michael Jantz Jamie Robinson Text Editors for Programmers Dr. Prasad Kulkarni Michael Jantz Jamie Robinson 1 Real Programmers 2 vim Based on vi vi written in 1976 and has become standard on Unix machines Basic design principles: Retains

More information

vi Primer Adapted from:

vi Primer Adapted from: Adapted from: http://courses.knox.edu/cs205/205tutorials/viprimer.html vi Primer This document is designed to introduce you to the standard UNIX screen editor, vi (short for "visual"). Vi can be used to

More information

Table of Contents. How to use this document. How to use the template. Page 1 of 9

Table of Contents. How to use this document. How to use the template. Page 1 of 9 Table of Contents How to use this document... 1 How to use the template... 1 Template Sections... 2 Blank Section... 2 Signature Sheet... 2 Title Page... 2 Roman Numerals Section (i, ii, iii, iv )... 3

More information

Text Editing in UNIX. A short introduction to vi, pico, and gedit

Text Editing in UNIX. A short introduction to vi, pico, and gedit Text Editing in UNIX A short introduction to vi, pico, and gedit Copyright 2006 2009 Stewart Weiss About UNIX editors There are two types of text editors in UNIX: those that run in terminal windows, called

More information

GNU Emacs as a Front End to L A TEX

GNU Emacs as a Front End to L A TEX Kresten Krab Thorup Dept. of Mathematics and Computer Science Institute of Electronic Systems Aalborg University DK-9220 Aalborg Ø Denmark krab@iesd.auc.dk Abstract As L A TEX andtex are more widely used,

More information

Module 3: Working with C/C++

Module 3: Working with C/C++ Module 3: Working with C/C++ Objective Learn basic Eclipse concepts: Perspectives, Views, Learn how to use Eclipse to manage a remote project Learn how to use Eclipse to develop C programs Learn how to

More information

Using Etps on Andrew. 1 Accessing Etps

Using Etps on Andrew. 1 Accessing Etps Using Etps on Andrew Copyright c Carnegie Mellon University 2005. This material is based upon work supported by NSF grants MCS81-02870, DCR-8402532, CCR-8702699, CCR-9002546, CCR-9201893, CCR-9502878,

More information

Intro to Microsoft Word

Intro to Microsoft Word Intro to Microsoft Word A word processor is a computer program used to create and print text documents that might otherwise be prepared on a typewriter. The key advantage of a word processor is its ability

More information

Screenshots Made Easy

Screenshots Made Easy Screenshots Made Easy Welcome to the simplest screenshot tutorial ever. We'll be using the simplest graphic editing tool ever: Microsoft Paint. The goal of this tutorial is to get you making your own screenshots

More information

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory 1 Logging In When you sit down at a terminal and jiggle the mouse to turn off the screen saver, you will be confronted with a window

More information

HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS

HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS INTRODUCTION A program written in a computer language, such as C/C++, is turned into executable using special translator software.

More information

Introduction. File System. Note. Achtung!

Introduction. File System. Note. Achtung! 3 Unix Shell 1: Introduction Lab Objective: Explore the basics of the Unix Shell. Understand how to navigate and manipulate file directories. Introduce the Vim text editor for easy writing and editing

More information

COMS 6100 Class Notes 3

COMS 6100 Class Notes 3 COMS 6100 Class Notes 3 Daniel Solus September 1, 2016 1 General Remarks The class was split into two main sections. We finished our introduction to Linux commands by reviewing Linux commands I and II

More information

Excel 2013 for Beginners

Excel 2013 for Beginners Excel 2013 for Beginners Class Objective: This class will familiarize you with the basics of using Microsoft Excel. Class Outline: Introduction to Microsoft Excel 2013... 1 Microsoft Excel...2-3 Getting

More information

Part I. Introduction to Linux

Part I. Introduction to Linux Part I Introduction to Linux 7 Chapter 1 Linux operating system Goal-of-the-Day Familiarisation with basic Linux commands and creation of data plots. 1.1 What is Linux? All astronomical data processing

More information

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Introduction. Key features and lab exercises to familiarize new users to the Visual environment Introduction Key features and lab exercises to familiarize new users to the Visual environment January 1999 CONTENTS KEY FEATURES... 3 Statement Completion Options 3 Auto List Members 3 Auto Type Info

More information

Microsoft Excel 2007

Microsoft Excel 2007 Learning computers is Show ezy Microsoft Excel 2007 301 Excel screen, toolbars, views, sheets, and uses for Excel 2005-8 Steve Slisar 2005-8 COPYRIGHT: The copyright for this publication is owned by Steve

More information

Dreamweaver Handout. University of Connecticut Prof. Kent Golden

Dreamweaver Handout. University of Connecticut Prof. Kent Golden Dreamweaver Handout University of Connecticut Prof. Kent Golden Kent@GoldenMultimedia.com www.goldenmultimedia.com Main goal of this handout: To give you the steps needed to create a basic personal website

More information

Vanilla Lisp Shell (VLS)

Vanilla Lisp Shell (VLS) Vanilla Lisp Shell (VLS) Copyright c 2001 William Paul Vrotney i Table of Contents 1 Introduction............................... 2 2 Notation Conventions...................... 3 3 Getting Started............................

More information

TeXnicCenter v1 Beta Frank Van Puyvlde ICT for Research K.U.Leuven

TeXnicCenter v1 Beta Frank Van Puyvlde ICT for Research K.U.Leuven TeXnicCenter v1 Beta 7.01 Frank Van Puyvlde ICT for Research K.U.Leuven March 2008 Contents 1 TeXnicCenter Installation 2 1.1 Installing TeXnicCenter........................... 2 1.2 TeXnicCenter and a

More information

Getting Started with Python and the PyCharm IDE

Getting Started with Python and the PyCharm IDE New York University School of Continuing and Professional Studies Division of Programs in Information Technology Getting Started with Python and the PyCharm IDE Please note that if you already know how

More information

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

Smarty Mode A GNU XEmacs mode for editing Smarty templates. Vincent DEBOUT Smarty Mode 0.0.2 A GNU XEmacs mode for editing Smarty templates Vincent DEBOUT Copyright c 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This manual

More information

Software Manual for Windows Z/EVES Version 2.3

Software Manual for Windows Z/EVES Version 2.3 Software Manual for Windows Z/EVES Version 2.3 TR-97-5505-04h Irwin Meisels Release date: June 2004 ORA Canada P.O. Box 46005, 2339 Ogilvie Rd. Ottawa, Ontario K1J 9M7 CANADA c ORA Canada (1996,1997,1999,

More information

EXCEL BASICS: MICROSOFT OFFICE 2010

EXCEL BASICS: MICROSOFT OFFICE 2010 EXCEL BASICS: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Getting started with UNIX/Linux for G51PRG and G51CSA

Getting started with UNIX/Linux for G51PRG and G51CSA Getting started with UNIX/Linux for G51PRG and G51CSA David F. Brailsford Steven R. Bagley 1. Introduction These first exercises are very simple and are primarily to get you used to the systems we shall

More information

LookoutDirect Basics: Windows, Tools, Files, and Path Names

LookoutDirect Basics: Windows, Tools, Files, and Path Names LookoutDirect Basics: Windows, Tools, Files, and Path Names 4 Starting LookoutDirect Logging on to LookoutDirect This chapter explains how to start and get around within LookoutDirect. It describes the

More information

Basic Survival UNIX.

Basic Survival UNIX. Basic Survival UNIX Many Unix based operating systems make available a Graphical User Interface for the sake of providing an easy way for less experienced users to work with the system. Some examples are

More information

Lab 3, Part 1: Using Oz/Mozart IDE

Lab 3, Part 1: Using Oz/Mozart IDE Lab 3, Part 1: Using Oz/Mozart IDE February 22, 2012 Using Oz/Mozart can be done in 2 ways: 1. interactive programming with OPI (Oz Programming Interface) (oz) 2. compiling Oz programs with Oz compiler

More information

The NetBeans IDE is a big file --- a minimum of around 30 MB. After you have downloaded the file, simply execute the file to install the software.

The NetBeans IDE is a big file --- a minimum of around 30 MB. After you have downloaded the file, simply execute the file to install the software. Introduction to Netbeans This document is a brief introduction to writing and compiling a program using the NetBeans Integrated Development Environment (IDE). An IDE is a program that automates and makes

More information

the NXT-G programming environment

the NXT-G programming environment 2 the NXT-G programming environment This chapter takes a close look at the NXT-G programming environment and presents a few simple programs. The NXT-G programming environment is fairly complex, with lots

More information

Lab #0 Getting Started Due In Your Lab, August 25, 2004

Lab #0 Getting Started Due In Your Lab, August 25, 2004 Lab #0 Getting Started Due In Your Lab, August 25, 2004 Name: Lab Time: Grade: /10 Man UNIX systems contain on-line manuals called man pages that are accessed through the program man. To find out how to

More information

UTA Tech Orientation Spring 2019

UTA Tech Orientation Spring 2019 UTA Tech Orientation Spring 2019 Overview Why is Tech Stuff Important? The Filesystem Shell Commands File Permissions Miscellaneous Why is Tech Stuff Important? Why is TA Tech Stuff Important? Different

More information

Easy Windows Working with Disks, Folders, - and Files

Easy Windows Working with Disks, Folders, - and Files Easy Windows 98-3 - Working with Disks, Folders, - and Files Page 1 of 11 Easy Windows 98-3 - Working with Disks, Folders, - and Files Task 1: Opening Folders Folders contain files, programs, or other

More information

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Excel 2010: Basics Learning Guide

Excel 2010: Basics Learning Guide Excel 2010: Basics Learning Guide Exploring Excel 2010 At first glance, Excel 2010 is largely the same as before. This guide will help clarify the new changes put into Excel 2010. The File Button The purple

More information

1 Installation (briefly)

1 Installation (briefly) Jumpstart Linux Bo Waggoner Updated: 2014-09-15 Abstract A basic, rapid tutorial on Linux and its command line for the absolute beginner. Prerequisites: a computer on which to install, a DVD and/or USB

More information

This is a demonstration of how you can create a Microsoft Power Point presentation:

This is a demonstration of how you can create a Microsoft Power Point presentation: This is a demonstration of how you can create a Microsoft Power Point presentation: Go to your start menu and choose Microsoft Office documents and choose the Power Point blank presentation document. Then

More information

1.0 Overview For content management, Joomla divides into some basic components: the Article

1.0 Overview For content management, Joomla divides into some basic components: the Article Joomla! 3.4.x Training Manual Joomla is an online content management system that keeps track of all content on your website including text, images, links, and documents. This manual includes several tutorials

More information

Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide

Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Overview Welcome to this refresher workshop! This document will serve as a self-guided explanation to

More information

My First iphone App. 1. Tutorial Overview

My First iphone App. 1. Tutorial Overview My First iphone App 1. Tutorial Overview In this tutorial, you re going to create a very simple application on the iphone or ipod Touch. It has a text field, a label, and a button. You can type your name

More information

Code::Blocks Student Manual

Code::Blocks Student Manual Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of

More information

Creating Web Pages with SeaMonkey Composer

Creating Web Pages with SeaMonkey Composer 1 of 26 6/13/2011 11:26 PM Creating Web Pages with SeaMonkey Composer SeaMonkey Composer lets you create your own web pages and publish them on the web. You don't have to know HTML to use Composer; it

More information

Week - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

COPYRIGHTED MATERIAL. Part I: Getting Started with SlickEdit. Chapter 1: Introducing SlickEdit. Chapter 2: Configuration. Chapter 3: Managing Windows

COPYRIGHTED MATERIAL. Part I: Getting Started with SlickEdit. Chapter 1: Introducing SlickEdit. Chapter 2: Configuration. Chapter 3: Managing Windows 22150c01.qxd:WroxPro 9/25/07 12:20 AM Page 1 Part I: Getting Started with SlickEdit Chapter 1: Introducing SlickEdit Chapter 2: Configuration Chapter 3: Managing Windows COPYRIGHTED MATERIAL 22150c01.qxd:WroxPro

More information

CS Students Linux User's Guide

CS Students Linux User's Guide CS Students Linux User's Guide Writing a Makefile Author: Jaco Kroon (jaco@kroon.co.za) Version: 1.0 Last modified: Mon Aug 11 13:27:34 SAST 2003 Table of Contents 4.2 Writing a Makefile 4.2.1 Why Use

More information

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2)

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2) TRAINING & REFERENCE murach s Oracle SQL and PL/SQL (Chapter 2) works with all versions through 11g Thanks for reviewing this chapter from Murach s Oracle SQL and PL/SQL. To see the expanded table of contents

More information

INTRODUCTION TO VIM. John Kerl University of Arizona Department of Mathematics Software Interest Group September 7, 2005

INTRODUCTION TO VIM. John Kerl University of Arizona Department of Mathematics Software Interest Group September 7, 2005 INTRODUCTION TO VIM John Kerl University of Arizona Department of Mathematics Software Interest Group September 7, 2005 1 Overview Why What How 2 Why use a power editor such as vim or emacs? Notepad, gedit,

More information

BE CAREFUL! The Summer Research Student s Guide to UNIX

BE CAREFUL! The Summer Research Student s Guide to UNIX BE CAREFUL! The Summer Research Student s Guide to UNIX Luke Leisman adapted from Andrew Butler June 2011 This is a guide designed to help summer researchers navigate the complexities of using a unix/linux

More information

Review of Fundamentals

Review of Fundamentals Review of Fundamentals 1 The shell vi General shell review 2 http://teaching.idallen.com/cst8207/14f/notes/120_shell_basics.html The shell is a program that is executed for us automatically when we log

More information

Editing and Running Standard ML under GNU Emacs

Editing and Running Standard ML under GNU Emacs Editing and Running Standard ML under GNU Emacs SML mode, Version $Name: $ August 1999 Authors: Matthew J. Morley and Stefan Monnier Copyright c (Anon) GNU General Public License as published by the Free

More information

Editing and Running Standard ML under GNU Emacs

Editing and Running Standard ML under GNU Emacs Editing and Running Standard ML under GNU Emacs SML mode, Version v4 0 August 1999 Authors: Matthew J. Morley and Stefan Monnier Copyright c (Anon) GNU General Public License as published by the Free Software

More information

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

Carnegie Mellon. Linux Boot Camp. Jack, Matthew, Nishad, Stanley 6 Sep 2016 Linux Boot Camp Jack, Matthew, Nishad, Stanley 6 Sep 2016 1 Connecting SSH Windows users: MobaXterm, PuTTY, SSH Tectia Mac & Linux users: Terminal (Just type ssh) andrewid@shark.ics.cs.cmu.edu 2 Let s

More information

OFFICE OF INFORMATION TECHNOLOGY

OFFICE OF INFORMATION TECHNOLOGY OFFICE OF INFORMATION TECHNOLOGY Getting Started with Emacs Kenny Burns Scott Cole 1996 BOSTON UNIVERSITY Permission is granted to make verbatim copies of this document provided copyright and attribution

More information

COPYRIGHTED MATERIAL. Starting Strong with Visual C# 2005 Express Edition

COPYRIGHTED MATERIAL. Starting Strong with Visual C# 2005 Express Edition 1 Starting Strong with Visual C# 2005 Express Edition Okay, so the title of this chapter may be a little over the top. But to be honest, the Visual C# 2005 Express Edition, from now on referred to as C#

More information

How To Use My Alternative High

How To Use My Alternative High How To Use My Alternative High Preface Preface I put this together to address the issues and questions that come up all the time in class, especially for newer students. Preface I did this so that I could

More information

Introduction. Overview of 201 Lab and Linux Tutorials. Stef Nychka. September 10, Department of Computing Science University of Alberta

Introduction. Overview of 201 Lab and Linux Tutorials. Stef Nychka. September 10, Department of Computing Science University of Alberta 1 / 12 Introduction Overview of 201 Lab and Linux Tutorials Stef Nychka Department of Computing Science University of Alberta September 10, 2007 2 / 12 Can you Log In? Should be same login and password

More information

Review of Fundamentals. Todd Kelley CST8207 Todd Kelley 1

Review of Fundamentals. Todd Kelley CST8207 Todd Kelley 1 Review of Fundamentals Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 The CST8207 course notes GPL the shell SSH (secure shell) the Course Linux Server RTFM vi general shell review 2 Linux

More information

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software. Welcome to Basic Excel, presented by STEM Gateway as part of the Essential Academic Skills Enhancement, or EASE, workshop series. Before we begin, I want to make sure we are clear that this is by no means

More information

Joomla! 2.5.x Training Manual

Joomla! 2.5.x Training Manual Joomla! 2.5.x Training Manual 1 Joomla is an online content management system that keeps track of all content on your website including text, images, links, and documents. This manual includes several

More information

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment.

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment. CPS109 Lab 1 Source: Partly from Big Java lab1, by Cay Horstmann. Objective: i. To become familiar with the Ryerson Computer Science laboratory environment. ii. To obtain your login id and to set your

More information

There are four (4) skills every Drupal editor needs to master:

There are four (4) skills every Drupal editor needs to master: There are four (4) skills every Drupal editor needs to master: 1. Create a New Page / Edit an existing page. This entails adding text and formatting the content properly. 2. Adding an image to a page.

More information

The Fundamentals. Document Basics

The Fundamentals. Document Basics 3 The Fundamentals Opening a Program... 3 Similarities in All Programs... 3 It's On Now What?...4 Making things easier to see.. 4 Adjusting Text Size.....4 My Computer. 4 Control Panel... 5 Accessibility

More information