Academic Tutorials



English | French | Portugese | German | Italian
Home Advertise Payments Recommended Websites Interview Questions FAQs
News Source Codes E-Books Downloads Jobs Web Hosting
Chats

Emacs Tutorial
Emacs Getting In and Out
Emacs Minibuffer
Emacs Using Vi
Emacs Features
Emacs Polyglot
Emacs Help for the Translator
Emacs Bookmarks and Registers

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
CSS 1.0
CSS 2.0
HLML
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
CVS
Python
Apple Script
PL/SQL Tutorial
SQL Server
PHP
.NET (dotnet)
Microsoft.Net
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
VC++
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Photoshop Tutorial
Gimp Tutorial
Matlab
Gnuplot Programming
GIF Animation Tutorial
Scientific Visualization Tutorial
Graphics
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Weblogic Tutorial
SEO
Web Site Hosting
Domain Name
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Eclipse
J2ME
JBOSS
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Cobol
Assembly Language
Mainframe
Forth Programming
Lisp Programming
Pascal
Delphi
Fortran
OOPs
Data Warehousing
CGI Programming
Emacs Tutorial
Gnome
ILU
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills
Database Tutorials
Oracle
MySQL
Operating System
BSD
Symbian
Unix
Internet
IP-Masquerading
IPC
MIDI
Software Testing
Testing
Firewalls
SAP Module
ERP
ABAP
Business Warehousing
SAP Basis
Material Management
Sales & Distribution
Human Resource
Netweaver
Customer Relationship Management
Production and Planning
Networking Programming
Corba Tutorial
Networking Tutorial
Microsoft Office
Microsoft Word
Microsoft Outlook
Microsoft PowerPoint
Microsoft Publisher
Microsoft Excel
Microsoft Front Page
Microsoft InfoPath
Microsoft Access
Accounting
Financial Accounting
Managerial Accounting
Network Sites


Emacs Introduction


Previoushome Next






Emacs: The Software Engineer's ``Swiss Army Knife''

 

Overview



A D V E R T I S E M E N T

The emacs editor is arguably the ``editor of choice'' among many software engineers. What is so nice about it? Here are some examples:

 

  • Emacs has a really nice windowing capability, e.g. allowing you to look at two different parts of a file at the same time.
  • Emacs has its own programming language, emacs-lisp, which you can use to customize emacs to your own personal usage patterns.
  • Emacs has a lot of miscellaneous tools which are very helpful, e.g. a built-in calculator.

As an example of the power of emacs-lisp, note that you can actually use the vi editor from which emacs! That is because people have written emacs-lisp programs to emulate vi, such as vi-mode.el, viper-mode.el and vip-mode.el. (All emacs-lisp source code files have a ``.el'' suffix.) For some people, this gives ``the best of both worlds,'' combining the power of emacs with the parsimonious keystrokes of vi.

 




Notation


Most of the emacs commands use either the control key or the escape key, which are denoted in emacs circles as C- and M-. For example, C-x b would mean to type control-x and then b; C-x C-b would mean to type control-x and then control-b; M-x would mean to type ESC then x (but release ESC before typing x).

When in vip-mode, the emacs mode in which vi commands are available, the ESC key can't be used for emacs commands, since it has special meaning for vi. For this and other reasons, emacs provides an alternate, the underscore key, i.e. `_'. So, for example, any M-x can be done as _-x

 




Functions and Key Binding


To illustrate the concepts of functions and key bindings, consider the action, common in any editor, of moving the cursor one character to the left (e.g. this is done using the h key in vi). In emacs, the formal name for this function is `backward-char'. As with the other emacs functions, we could invoke this function using M-x, i.e. by typing

 

M-x backward-char

Of course, this would be far too much typing for such a small action. Emacs allows key-binding to take care of this problem. In this case, for example, we say that emacs has ``bound C-b to the function backward-char,'' meaning that whenever we type C-b, that function will be invoked.

We can change key bindings, and add new ones, by using various emacs functions, e.g. `global-set-key'. In your file

 

   ~/.emacs

(whose commands will be executed automatically each time you start up emacs) for example, you could have a line

 

(global-set-key "\Cx-v" 'vip-mode)

which binds C-x v to the function `vip-mode'.


ADODB.Field error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/include/add-comment.asp, line 7