Academic Tutorials

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

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
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
Apple Script
PL/SQL Tutorial
SQL Server
.NET (dotnet)
.Net Mobile
C# : C Sharp
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Photoshop Tutorial
Gimp Tutorial
Gnuplot Programming
GIF Animation Tutorial
Scientific Visualization Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Weblogic Tutorial
Web Site Hosting
Domain Name
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Assembly Language
Forth Programming
Lisp Programming
Data Warehousing
CGI Programming
Emacs Tutorial
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills
Database Tutorials
Operating System
Software Testing
SAP Module
Business Warehousing
SAP Basis
Material Management
Sales & Distribution
Human Resource
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
Financial Accounting
Managerial Accounting
Network Sites

Miscellaneous Emacs Features

Previoushome Next

Miscellaneous Emacs Features

Name Completion

This was described earlier, for file names. The same holds for command names, buffer names, etc.


You can give just the first few letters of, say, an M-x command (e.g. M-x cal instead of M-x calendar). Then hit the Space bar, and emacs will do name completion, showing you which commands begin with the string you have so far.

Use of the Tab and Return keys in this context produces results like Space, but with some differences. Experiment with them, and you'll see the difference.

Once you get accustomed to this feature, you will find that you rarely have to spell out a full command name; the Space bar will do most of your typing for you! All you have to do is give enough characters for uniqueness, and hit the space bar.



Suppose you are writing an article about the state of Washington. Instead of typing ``Washington'' again and again, you need type it only once. After you type it that first time, place the cursor one character to the right of the final letter in the word, in this case the second `n', and type C-x +. You will then be prompted for an abbreviation, say `wa'. From then on, whenever you type `wa', followed by a space, emacs will expand your abbreviation to the full word `Washington'.

To take effect, the emacs variable `abbrev-mode' must have the value `t', i.e. true. You can check this by using the C-x v command, and if it has the value `nil', i.e. false, you can either use the `set-variable' function to set it, or simply `M-x abbrev-mode'.


File Backup

Emacs periodically will make backup copies of all files you are editing. The copies are distinguished by a tilde at the end of their names.


Using Emacs Under X11

Emacs does allow you to make use of the mouse in certain ways. One of the most useful is as a speedier alternative to C-x o in switching windows. If you are in one window and wish to move to another, simply click the left mouse button in that window. And even better--the cursor will not only move to that window, but also move to the exact position within the window that the mouse pointed to when you clicked.


Customizing Emacs

Emacs allows you to make your own abbreviations of commands. Some you would use only in a given emacs session, or even only in a given emacs buffer. Others you would use all the time, and thus you would put them into your .emacs file. See the on-line help facilities described below for the commands global-set-key, local-set-key, add-global-abbrev, etc. My .emacs file shows some examples of their use.

You can also use the emacs-lisp language to write new commands.


Learning More About Emacs

On-Line Help

Emacs has an excellent on-line help facility, including the following commands:


C-h t     invoke an emacs tutorial 
C-h f     get a short description of a function
C-h a     list all functions whose name includes the given string
C-h b     list all the bindings of keys
C-x v     get an explanation of a given emacs variable, and find out
          its current value
M-x info  get more extensive information on emacs features

The tutorial is mainly about cursor-movement commands, which is not very useful if you will (as I recommend) be using vip-mode for those actions.

C-h f is much more useful. If for example I wish to know about the various e-mail commands which emacs has, I can type C-h a and then when prompted in the minibuffer, type `mail'. A buffer will then be created which lists all emacs commands whose name includes the string `mail'. For example, one of them will be rmail; I can then learn more about it by typing C-h f and then answering `rmail' when the prompt appears in the minibuffer.

The command M-x info is quite good. Just follow instructions (e.g. your first command in it will probably be `m emacs').


Library Files

Various emacs commands are actually files in the lisp subdirectory of the emacs directory on your machine. You may wish to browse through this subdirectory. To find out where it is, type


whereis emacs

to the Unix shell. The .el files you see in that directory are written in the emacs-lisp language, so you can use these as examples to help learn from. Note that whenever you see a function or variable name which is new to you, you can find its definition by using C-h f.



C-z also works, but this would conflict with emacs's vi capability.


And since it generally does take a few seconds to start up, it's better to just do this once, at the beginning of one's Unix session.


If you are in vip-mode at the time, you may have to type C-g more than once.


Since they are temporary, they will not be on the disk, though you have the option of saving them to disk if it becomes useful to do so


Actually I must type `_-x calendar', since I am in vip-mode and thus the ESC key isn't available for emacs commands.


You may wish to move the cursor to this buffer, e.g. to scroll it (the list may be too large to fit the window) or maybe even to save it to a file. You cannot make this move by using C-x b, as that would need the minibuffer, which is already in use, but you can temporarily leave the minibuffer by using C-x o, to go to another window; just keep using this command until you get to the *Completions* window. By the way, the *Completions* buffer will be killed once you actually finish with the minibuffer.


This is a very common usage, e.g. to check whether the parameters match up correctly, though in this example there are no parameters.

Be the first one to comment on this page.

  Emacs Tutorial eBooks

No eBooks on Emacs could be found as of now.

 Emacs Tutorial FAQs
More Links » »
 Emacs Tutorial Interview Questions
More Links » »
 Emacs Tutorial Articles

No Emacs Articles could be found as of now.

 Emacs Tutorial News

No News on Emacs could be found as of now.

 Emacs Tutorial Jobs

No Emacs Articles could be found as of now.

Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Previoushome Next

Keywords: Miscellaneous Emacs Features, Emacs, Emacs, Emacs tutorial, Emacs tutorial pdf, history of Emacs, Custamizing Style Sheet, learn Emacs

HTML Quizzes
CSS Quiz
CSS 1.0 Quiz
CSS 2.0 Quiz
XML Quizzes
XML Quiz
XSL Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizzes
JavaScript Quiz
VBScript Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizzes
ASP Quiz
SQL Quiz
ADO Quiz
CVS Quiz
Python Quiz
Apple Script Quiz
SQL Server Quiz
PHP Quiz
.NET (dotnet) Quizzes
Microsoft.Net Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
VC++ Quiz
Multimedia Quizzes
SVG Quiz
Flash Quiz
Media Quiz
Photoshop Quiz
Gimp Quiz
Matlab Quiz
Gnuplot Programming Quiz
GIF Animation Quiz
Scientific Visualization Quiz
Graphics Quiz
Web Building Quizzes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Weblogic Quiz
SEO Quiz
Web Site Hosting Quiz
Domain Name Quiz
Java Quizzes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Eclipse Quiz
J2ME Quiz
Programming Langauges Quizzes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Cobol Quiz
Assembly Language Quiz
Mainframe Quiz
Forth Programming Quiz
Lisp Programming Quiz
Pascal Quiz
Delphi Quiz
Fortran Quiz
OOPs Quiz
Data Warehousing Quiz
CGI Programming Quiz
Emacs Quiz
Gnome Quiz
ILU Quiz
Soft Skills Quizzes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz
Database Quizzes
Oracle Quiz
MySQL Quiz
Operating System Quizzes
BSD Quiz
Symbian Quiz
Unix Quiz
Internet Quiz
IP-Masquerading Quiz
IPC Quiz
Software Testing Quizzes
Testing Quiz
Firewalls Quiz
SAP Module Quizzes
ERP Quiz
Business Warehousing Quiz
SAP Basis Quiz
Material Management Quiz
Sales & Distribution Quiz
Human Resource Quiz
Netweaver Quiz
Customer Relationship Management Quiz
Production and Planning Quiz
Networking Programming Quizzes
Corba Quiz
Networking Quiz
Microsoft Office Quizzes
Microsoft Word Quiz
Microsoft Outlook Quiz
Microsoft PowerPoint Quiz
Microsoft Publisher Quiz
Microsoft Excel Quiz
Microsoft Front Page Quiz
Microsoft InfoPath Quiz
Microsoft Access Quiz
Accounting Quizzes
Financial Accounting Quiz
Managerial Accounting Quiz
Testimonials | Contact Us | Link to Us | Site Map
Copyright ? 2008. Academic All rights reserved Privacy Policies | About Us
Our Portals : Academic Tutorials | Best eBooksworld | Beyond Stats | City Details | Interview Questions | Discussions World | Excellent Mobiles | Free Bangalore | Give Me The Code | Gog Logo | Indian Free Ads | Jobs Assist | New Interview Questions | One Stop FAQs | One Stop GATE | One Stop GRE | One Stop IAS | One Stop MBA | One Stop SAP | One Stop Testing | Webhosting in India | Dedicated Server in India | Sirf Dosti | Source Codes World | Tasty Food | Tech Archive | Testing Interview Questions | Tests World | The Galz | Top Masala | Vyom | Vyom eBooks | Vyom International | Vyom Links | Vyoms | Vyom World | Important Websites
Copyright ? 2003-2023 Vyom Technosoft Pvt. Ltd., All Rights Reserved.