I have a folder hardcoded in variable:
(defvar folder-start-mine "/path/to/start/folder/") Then I want to interactively define new non-existing subfolder name:
(defun my-new-defun (sel-subdir) (interactive "GNew folder: " folder-start-mine) (mkdir sel-subdir) ... do some stuff with sel-subdir ... ) The file navigator in minibuffer starts in home folder and I want it to start in folder-start-mine.
folder-start-mineto be the default value forsel-subdir, or do you want the value ofsel-subdirto be a directory located inside/relative tofolder-start-mine? You mention "It starts in the home folder", but I don't know what you're referring to?~/. I want it to start in/path/to/start/folder/. I want forsel-subdirto be a path to the new subfolder (this works).