[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to visit a file and kill the current buffer?
From: |
Mario Castelán Castro |
Subject: |
How to visit a file and kill the current buffer? |
Date: |
Sun, 10 Sep 2017 12:13:51 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
Hello.
Is there a way to visit a file in the current window and at the same
time kill the previous buffer that occupied the current window? I am
looking for something that behaves like the “Open” functionality in
simple GUI text editors (like leafpad).
Very often I have a frame displaying a file, but I no longer need to
have that file open. I wish to instead open another file. What I do
currently is to do C-x C-f and visit the new file, then kill the now
unneeded buffer, but it is annoying to have to do this in 2 steps.
Moreover, I tend to forget the later step and then I accumulate a lot of
“garbage” buffers that are visiting files that I am no longer interested in.
I must note that I use IDO in case it makes any difference.
Thanks.
--
Do not eat animals; respect them as you respect people.
https://duckduckgo.com/?q=how+to+(become+OR+eat)+vegan
signature.asc
Description: OpenPGP digital signature
- How to visit a file and kill the current buffer?,
Mario Castelán Castro <=
Re: How to visit a file and kill the current buffer?, Eli Zaretskii, 2017/09/10
RE: How to visit a file and kill the current buffer?, Drew Adams, 2017/09/10