In this lab, you will be opening a file in Emacs to search for and kill selected text. In addition, you will also be yanking text into a new buffer. Basic knowledge of opening files, along with searching and killing/yanking in Emacs, is recommended. Upon completing this lab, you will know how to kill words and regions of text and yank from the kill ring into buffers.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Open a File
- Using Emacs, open the file named
/tmp/kill_and_yank
.
- Using Emacs, open the file named
- Kill Text from File
- Kill the first two words in the file.
- Kill the phrase "Kill and then yank".
- Kill the paragraph that begins with "No, not me".
- Yank Text into a New Buffer
- Create a new buffer name
/tmp/my_yanks.txt
. - Yank the phrase "Kill and yank" into the new buffer.
- Yank the first two words that were killed into the new buffer.
- Save the buffer.
- Create a new buffer name