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