1

This answer https://emacs.stackexchange.com/questions/28981/finding-files-by-names mentions

"If you are running Dired with a 'ls' implemented in elisp, 'ls-lisp' or 'eshell-ls', then you can recursively list all the files matching a wildcard".

But I do not know how to achieve that.

Is there a way (customization or setting in init.el) to ask dired to use eshell commands where available?

mzimmermann
  • 1,002
  • 2
  • 9
  • 14

2 Answers2

1

You can use ls-lisp emulation (ls-lisp.el), which is part of vanilla Emacs. (Someone else will hopefully answer for eshell.)

To enable ls-lisp, customize option ls-lisp-use-insert-directory-program to the value nil.

See the Emacs manual, node ls in Lisp.

See also Emacs Wiki page ls Lisp.

Drew
  • 29,895
  • 7
  • 74
  • 104
1

Drew's answer showed me the path. Looking through eshell variables, it looks like to enable eshell-ls in lisp, we can use eshell-ls-use-in-dired to 't:

(setq eshell-ls-use-in-dired 't)

mzimmermann
  • 1,002
  • 2
  • 9
  • 14