Saving Buffer using buffer name in emacs

Posted on March 6, 2021

In all the time that I have used Emacs, it is kind of funny how I never created and used buffers. Mostly I would create new file or open existing files.

More recently I started creating and using buffers in Emacs, but when it came time to save a buffer to a file(C-x C-w) you need to provide file name. For me usually I want my filename to be same as the buffer name.

The suggested solution on the inter-web C-x C-w, M-n didn’t seem to work. Since I am using ido-mode, the way to save buffer to file corresponding to the buffer name is

C-x C-w, C-f M-n