c10fb333d6
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@189 a672b425-5310-4d7a-af5c-997e18724b81
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
---
|
|
layout: page
|
|
author: Alessandro Luini
|
|
category-page: advanced
|
|
category-title: Advanced commands
|
|
tags: advanced text editor
|
|
title: emacs
|
|
---
|
|
|
|
<p>
|
|
Emacs is one of the oldest and most versatile text editors available for
|
|
UNIX-based systems. It's been around for a long time (more than twenty years
|
|
for GNU emacs) and is well known for its powerful and rich editing features.<br>
|
|
Emacs is also more than just a text editor; it can be customized and
|
|
extended with different "modes", enabling it to be used like an
|
|
Integrated Development Environment (IDE) for programming languages
|
|
like Java, C or Python.<br>
|
|
|
|
For those who have used both the ubiquitous vi and the user-friendly nano,
|
|
emacs would come as an interesting cross-between. Its strengths and features
|
|
would resemble those of vi while its menus, help files and easy-to-remember
|
|
command-keys would compare with nano.<br>
|
|
|
|
In this article, we will see how we can install emacs
|
|
in a Linux system and use it for basic text editing. Emacs
|
|
is also available for graphical window managers, however we will only cover the
|
|
"text based" version here.
|
|
|
|
<h3>How to install</h3>
|
|
|
|
Run the following command:
|
|
<pre>
|
|
install emacs
|
|
</pre>
|
|
|
|
<h3>Open a file, or create it like this:</h3>
|
|
|
|
<pre>
|
|
emacs file1.txt
|
|
</pre>
|
|
|
|
And then follow the simple manual that will be open.
|
|
</p>
|