help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to delete all text from beginning of buffer to mark


From: Teemu Likonen
Subject: Re: How to delete all text from beginning of buffer to mark
Date: Mon, 08 May 2017 18:35:18 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Angus Comber [2017-05-08 07:14:40-07] wrote:

> What is the best way to basically delete all text before the cursor in
> the buffer?

M-< C-w

The first command (beginning-of-buffer) sets the mark and moves the
point to the beginning of buffer. The second command (kill-region) kills
the text between the point and the mark.

-- 
/// Teemu Likonen   - .-..   <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]