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?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityThanks 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.