(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