How do I get the ls shell command to list my files in:
- case-insensitive order
- with the directories at the top?
The reason I ask is: I want Aquamacs Emacs dired to list my files and directories this way. Emacs queries ls when displaying dired.
Which means I don't think piping using a command like
ls -whatever | sort -f
will work. (Or will it? Can I do something fancy with aliases?)
I'm using zsh at the moment, but I'm not sure that matters for Emacs.
Similar questions have been asked here before and in other forums, but never resolved.
So, is this possible?
dired-details, which causesdiredto display files this way:filename.orginstead of this way:-rw-r--r--@ 1 peter peter 4000 Oct 5 18:21 filename.org. Is there a way to make them play nicely together? – incandescentman Mar 07 '13 at 19:24dired-detailshere, you may need to adjust the second regexp insort-regexp-fields. For case-insensitive sorting, settingsort-fold-casetonon-nilshould do the trick. – nohillside Mar 07 '13 at 19:34sort-fold-case(I don't find it as a variable when I doC-h v). And can you suggest syntax for how I might adjust the second regexp insort-regexp-fieldsso I can play with it? Thank you. – incandescentman Mar 07 '13 at 19:58G(Refresh), dired-details successfully omits the extraneous information. Any way to get it to do this automatically when I navigate to a directory? – incandescentman Mar 13 '13 at 05:25