Search code examples
emacsdired

Open some directories recursively in Dired


I want to show a directory in Dired with some sub-directories opened recursively (as if I passed "R" option for them). Is it possible to do this in Emacs? Any ideas how to implement this easily in Elisp?

In windows explorer I would press '*' in folders window to open a directory recursively (of course only sub-directories are visible, not files). I want the same thing in Emacs, but that files are visible too.


Solution

  • Prefix dired-maybe-insert-subdir command (bound to i in dired-mode) with C-u to add recursive -R option for ls to insert directory recursively.

    C-u i .. R .. <RET>