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

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

Re: delete buffer content from the point


From: Joost Kremers
Subject: Re: delete buffer content from the point
Date: Tue, 13 Jul 2021 14:08:48 +0200
User-agent: mu4e 1.5.12; emacs 27.2

On Tue, Jul 13 2021, Luca Ferrari wrote:
> Is there a short and sweet way to kill the content of the current
> buffer from the point to the end of the buffer itself?
> I do often duplicate files and adjusts the header part, then I do
> 'C-k' until the part of the file I want to delete has disappeared, but
> this has the drawback of being slow and inserting a wall of text into
> the kill ring.

C-SPC to set the mark, M-> to go to the end of the buffer and then DEL or
BACKSPACE or C-d or C-w to delete the text.

But for the use-case that you describe, it may be more practical to use
`auto-insert-mode` or yasnippet.

-- 
Joost Kremers
Life has its moments



reply via email to

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