Configuration
You can add the following to your ~/.emacs or ~/.emacs.d/init.el for a quick setup:
(require 'dired-quick-sort) (dired-quick-sort-setup)This will bind "S" in dired-mode to invoke the quick sort hydra and new Dired buffers are automatically sorted according to the criterion that was used to sort last time. See the document of dired-quick-sort-setup if you need a different setup. It is recommended that at least -l should be put into dired-listing-switches . If used with dired+ , you may want to set diredp-hide-details-initially-flag to nil .