When calling ido-find-file
it's possible to type ~/
to replace the current working directory with your home directory automatically:
Find file: /etc/{...} # after typing ~/ becomes:
Find file: ~/{...}
How can I replicate this but for a custom directory such as user-emacs-directory
and when pressing a key instead of inserting text in the minibuffer? For example:
Find file: /var/log/{...} # after pressing F6 becomes:
Find file: ~/.emacs.d/{...}