Questions tagged [kill-buffer]
46 questions
3
votes
2 answers
Delete word backward without coping it to buffer
(I feel like there should be duplicate for this, but I could not find it. Pardon me.)
Question
How can I delete word backwards without it being copied to buffer?
Explanation
I developed a habit of coping text from somewhere, coming to emacs, using…
2
votes
1 answer
Kill default buffer (with cursor)
Windows 10, Emacs 25.1, Helm
I open 3 buffers (3 files).
Show only 2 buffers.
As you can see the current buffer is my_buffer_1 because cursor is in this buffer.
I want to kill this current buffer.
M-x kill-buffer
But Emacs ask me what exactly…

a_subscriber
- 4,062
- 1
- 18
- 56
1
vote
3 answers
kill-buffer with y-or-n-p instead of yes-or-no-p
Q: How can I use y-or-n-p -- instead of yes-or-no-p -- when calling kill-buffer for just the duration of a particular function?
In other words, I want the behavior of (fset 'yes-or-no-p 'y-or-n-p) but only for the duration of a particular function…

lawlist
- 19,106
- 5
- 38
- 120