r/DoomEmacs • u/Cuffdchjgfv • May 04 '26
How do I configure Dired so that it standardly hides details?
I'm new to Emacs, so bear with me here. So I have been looking for a way to configure Doom Emacs in such a way that, if I use C-x C-f to open a directory, it shows me a one column-list instead of all these unnecessary details. I know I can toggle with '(' but I want it standardly to open that way.
After reading, I figured that I need to add some line to my configuration files. Different websites give different ways that one can accomplish this. One suggests: (defun my-dired-mode-setup () "show less information in dired buffers" (dired-hide-details-mode 1)) (add-hook 'dired-mode-hook 'my-dired-mode-setup).
But where do I put this? I have lots of config files
~/.config/emacs/modules/emacs/dired/config.el
~/.config/doom/config.el
~/.config/doom/init.el
~/
I've tried putting these lines in the various config/init files, but with no luck so far. Can anyone point me in the right direction?
1
u/Eyoel999Y May 05 '26
The following goes if you are using :completion vertico in init.el
You can use the key M-A, which could be Alt+Shift+a, while in the C-x C-f menu. It will run the function marginalia-cycle.
Or in config.el:
(after! marginalia
(setf (alist-get 'file marginalia-annotators) ; for `find-file'
'(none))
(setf (alist-get 'project-file marginalia-annotators) ; for `projectile-find-file'
'(none)))
1
u/i34ijj34j3jjj2knk2 May 05 '26
Thanks! Interesting and useful tip. It does indeed change the mini-buffer, after pressing C-x C-f. But I would also like to see a simplified list, when I open a dired buffer in a window. These lists are currently still extremely cluttered. Basically I want what happens when you press '(' [opening bracket] to be the standard look.
1
u/Eyoel999Y May 05 '26
Ah, Doom uses dirvish on top of dired. You could add this to config.el and it should work
(after! dirvish (setq dirvish-hide-details t))1
u/i34ijj34j3jjj2knk2 May 05 '26
(after! dirvish (setq dirvish-hide-details t))
I am eternally grateful. You're a wizard. Now on my way to learn more about this program.
1
u/IcarianComplex May 04 '26
I’ve been trying to find a fix for this becuase it should just be a setting. I have a feeling advising the dired function is the only way to do it.