I want to use hydra (in Emacs 24.5.1 on Windows 10) to create a pop-up list of directories that I often use. Selecting one of the directories in the list, using a single key, should cause it to open in Dired.
For example, the plan is that once the hydra menu is active hitting "a" will open in "g:/foo/bar/grob"
and hitting "b" will open "c:/longername/short/utilities/morestuff/utilities"
and so on.
I have run into difficulties with something I thought would have been obvious, namely opening a buffer in Dired. My idea was to have the hydra trigger the relevant Dired command, that I assumed would exist and look like:
dired-read-buffer "c:/emacs"
As far as I can see, there is no such command in the section in the GNU Emacs manual on invoking Dired. There is more than one way to interactively call Dired, but I want something more programmatic.
How can I implement this?
C-h f dired
tells you all you need to know: the function (command) accepts the directory name as argument. Ask Emacs.C-h f dired
, perhaps because unlike yourself I do not live in Emacs, I just visit every other week. Fortunately the question was answered by somebody else so that the next person who comes looking will hopefully find the answer - which is what SO is for.