[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired-details-hide
From: |
Jambunathan K |
Subject: |
Re: dired-details-hide |
Date: |
Thu, 11 Jul 2013 22:21:23 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
daniel <idnael@gmail.com> writes:
> hi
> there is a nice function dired-details-hide that hides the detail columns
> from a Dired buffer.
>
> Anyone found a way to call it automatically whenever I create a new Dired
> buffer?
>
> hint: cannot do that just with a major-mode-hook or something that is
> called when the buffer is created, because in the case of Find-dired, the
> buffer content is added asynchronously.
>
> Is the solution in dired-details+.el?
I don't use dired-details+.el. I rely on what comes with Emacs itself.
Add this hook
(add-hook 'dired-mode-hook 'dired-hide-details-mode)
When details are hidden, the dired buffer no longer looks like a dired
buffer. So I give it a special face, as below.
(custom-set-variables
'(buffer-face-mode-face (quote (:background "light gray"))))
(add-hook 'dired-mode-hook 'buffer-face-mode)