Jack Baty

Director of Unspecified Services

Hiding File Permissions in Dired

2022-07-31

Dired mode in Emacs is fantastic, but one little thing that annoyed me was that the directory listings show file ownership and permissions, taking up space with information I almost never care about. I started down a rabbit hole of figuring out how to hide those columns. I spent wasted an hour on my way to discovering that, of course, there’s a built-in way to do it: dired-hide-details-mode.

Well, that was easy.

;; Hide file ownership/permissions by default
(add-hook 'dired-mode-hook 'dired-hide-details-mode)

This makes the listing go from this…

Dired listing before hiding permissions

…to this…

Dired listing after hiding permissions

This is almost always what I’d prefer.


Comments

If you have any comments or questions, I'd love to hear from you!