Skip to main content

Hiding File Permissions in Dired

·1 min

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.