Emacs contains an EmacsLisp emulation of the UNIX ‘ls’ command: library ls-lisp.el.

On non-UNIX and non-GNU/Linux platforms, ‘ls-lisp’ is used by default, so you do not need an ‘ls’ port for your platform.

Ls-lisp unifies the meaning of the ‘ls’ command-line switches, and makes it possible for Dired to parse the ‘ls’ output regardless of the platform. To enable ‘ls-lisp’ on all platforms, put this in your init file:

  (setq ls-lisp-use-insert-directory-program nil)

If you are on Windows and use Cygwin and Emacs 20, you might want to set ‘ls-lisp-use-insert-directory-program’ to non-‘nil’, to be able to use Cygwin’s ‘ls’ command for Dired. It allows sorting by filename extension (ls option -X). – DrewAdams

Libraries that Enhance LS Lisp

files 691 space used 49439 available 56233408