BASIC EMACS COMMANDS

LEARNING OBJECTIVES

At the end of this project, you are expected to be able to explain to anyone, without the help of Google:

What is Emacs Who is Richard Stallman How to open and save files What is a buffer and how to switch from one to the other How to use the mark and the point to set the region How to cut and paste lines and regions How to search forward and backward How to invoke commands by name How to undo How to cancel half-entered commands How to quit Emacs

REQUIREMENTS

All tasks must be done inside the sandbox Ubuntu 20.04 Your sandbox must be available at the end of this project - the Checker will access to it at midnight for running the correction! The answer of a task must be in a specific file Each answer file must contain only the command to execute in Emacs for solving the task. Example: “What is the command to write buffer to a specified file?” -> the file should contain only C-x C-w

TASKS

MANDATORY Task 0. Create your answer directory: Navigate to /root and create a directory named 0x02_emacs

Task 1. Opening: What is the command to open a file from within Emacs? Write the answer into the file /root/0x02_emacs/opening.

Task 2. Saving: What is the command to save a file? Write the answer into the file /root/0x02_emacs/saving.

Task 3. Cutting: What is the command to cut an entire line? Write the answer into the file /root/0x02_emacs/cutting.

Task 4. Pasting: What is the command to paste? Write the answer into the file /root/0x02_emacs/pasting.

Task 5. Searching: What is the command to search forward? Write the answer into the file /root/0x02_emacs/searching.

Task 6. Undoing: What is the command to undo? Write the answer into the file /root/0x02_emacs/undoing.

Task 7. Quitting: What is the command to quit Emacs? Write the answer into the file /root/0x02_emacs/quitting.

RESOURCE LINKS

GNU Emacs: A Guided Tour of Emacs; https://www.gnu.org/software/emacs/tour/

NOTES