More often than not, when I open a dired buffer, I press
(
to rundired-hide-details-mode
s
to rundired-sort-toggle-or-edit
What's a good way to have these done automatically every time I open a dired buffer?
Thanks to Dan's comment on the original question.
This seems to work:
(add-hook 'dired-mode-hook
(lambda ()
(dired-hide-details-mode)
(dired-sort-toggle-or-edit)))
dired-mode-hook
. Hooks are the standard way to perform mode-specific customizations.