I am running following sequence.
- Open dired mode with C-x d and select a directory.
- View a file in that directory with ‘v’.
- Kill that file with C-x k RET.
I see that Current buffer is one of the previously opened (P) something else rather than the one in dired mode. Even if I kill this buffer P with C-x k RET
I still do not see the dired-mode buffer.
I like to go back to the dired-mode buffer. I can still get it via C-x C-b, but I would prefer that this should be automatic choice once I view the file and kill it.
You should just use
qforView-quit(orQforView-quit-all). That’s important, because those to actually try to restore the windows configuration.If you can’t restrain your muscle memory you can bind
C-x ktoView-quit