I add (setq dired-listing-switches "-lXGh --group-directories-first")
in my init.el
But when I go into dired mode.
ls does not support --dired; see ‘dired-use-ls-dired’ for more details.
insert-directory: Listing directory failed but ‘access-file’ worked
this error occurs. How can I solve this problem? I want to sort directories first in dired mode. My environment is macOS Sierra and emacs 25.1
ls
that permits me to sort directories first. I haven't yet upgraded to Sierra, so I don't know what type ofls
version it has: See: "error in dired sorting on OS X": stackoverflow.com/a/20027876/2112489 In a nutshell, certain versions ofls
do not support group directories first. You can open a shell and type help forls
to see what command line options are supported.