2018-11-14 18:09:25 +00:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
author: Alessandro Luini
|
|
|
|
category-page: advanced
|
|
|
|
category-title: Advanced commands
|
|
|
|
tags: advanced text editor
|
|
|
|
title: emacs
|
2018-11-18 20:38:56 +00:00
|
|
|
previous-page: pages/cmd/advanced/echo.html
|
|
|
|
next-page: pages/cmd/advanced/grep.html
|
2018-11-14 18:09:25 +00:00
|
|
|
---
|
|
|
|
|
2018-11-14 21:15:38 +00:00
|
|
|
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>
|
2018-11-14 18:09:25 +00:00
|
|
|
|
|
|
|
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
|
2018-11-14 21:15:38 +00:00
|
|
|
command-keys would compare with nano.<br>
|
2018-11-14 18:09:25 +00:00
|
|
|
|
|
|
|
In this article, we will see how we can install emacs
|
|
|
|
in a Linux system and use it for basic text editing. Emacs
|
2018-11-14 21:15:38 +00:00
|
|
|
is also available for graphical window managers, however we will only cover the
|
|
|
|
"text based" version here.
|
|
|
|
|
|
|
|
<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.
|