Whenever I've to create a new directory in emacs, I enter dired mode, press "+" and enter the new directory name which creates the new directory. Is there a way I can avoid using dired-mode and create a new directory in the current path of the active buffer like creating a new file using C-x C-f command ?

1 Answer 1


You could use M-x make-directory DIRNAME RET. The default path is the path to the current buffer folder.

You could bind it to key (like C-x C-f) with (global-set-key (kbd "C-c d") 'make-directory).

You could create buffer in nonexist path with C-x C-f non/exist/path/file.name RET and then create nececcary folders with M-x make-directory RET RET.

  • 1
    M-x mkdir works too.
    – YoungFrog
    Commented Aug 13, 2016 at 9:29
  • mkdir is an alias for make-directory. Commented Aug 13, 2016 at 11:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.