When creating a new buffer via:
C-x b
NonExistentBufferName
RET
RET
I would like Emacs to ask me what major mode this buffer is going to use upon opening. Moreover, I want Emacs to infer the major mode in some cases based on the buffer's name:
C-x b
test.org
(no such buffer so far)RET
RET
=> org-mode is used without asking me anything.
Could anybody advice if I can use any package for this? Or is it achievable at all via pure elisp?
P.S.
I'm using ido
if it matters.