0

Emacs 26.1, Windows 10. Dired+

Here some folder:

enter image description here

I want to reverse sort. So I press s

And here result:

enter image description here

I don't want to sort symbols: dot and 2 dots. I want to sort ONLY file names. Is it possible?

1
  • Pressing s does not mean to reverse the sort. See the documentation with {C-h k s} in a dired.
    – Marco Wahl
    Commented Feb 10, 2019 at 21:28

1 Answer 1

2
  1. Set it per buffer: Use C-u s SWITCHES <RET> as documented in Updating the Dired Buffer section of the info manual, take only -l as the swithes, which defaults to -al.

  2. (setq dired-listing-switches "-l") sets it permanently.

4
  • But I want to see dots to can exit by arrow UP from folder. So I need to show dots, but exclude dots from sort. Is it possible? Commented Feb 11, 2019 at 8:29
  • Do you mean opening the parent dir by "can exit by arrow UP from folder"? If so, type ^.
    – whatacold
    Commented Feb 11, 2019 at 8:38
  • I don't want EVERY time to type "Use C-u s SWITCHES <RET>" -1 to hide dots. Is it possible to do this automatically? Commented Feb 11, 2019 at 9:14
  • I've updated my answer, actually it's also documented in the manual section I posted before:)
    – whatacold
    Commented Feb 11, 2019 at 9:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.