From: Jambunathan K <kjambunathan@gmail.com>
To: daniel <idnael@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: dired-details-hide
Date: Thu, 11 Jul 2013 22:21:23 +0530 [thread overview]
Message-ID: <87zjttjb04.fsf@gmail.com> (raw)
In-Reply-To: <CABX3oxbHNbYhwHUUjDzOvGeaw+vApE-fB-+PqQMWKuJV+NjvUA@mail.gmail.com> (daniel's message of "Thu, 11 Jul 2013 17:44:22 +0100")
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)
next prev parent reply other threads:[~2013-07-11 16:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-11 16:44 dired-details-hide daniel
2013-07-11 16:51 ` Jambunathan K [this message]
2013-07-11 16:57 ` dired-details-hide daniel
2013-07-11 17:18 ` dired-details-hide Jambunathan K
2013-07-11 17:30 ` dired-details-hide daniel
2013-07-11 21:23 ` dired-details-hide Drew Adams
[not found] ` <mailman.877.1373577834.12400.help-gnu-emacs@gnu.org>
2013-07-12 9:18 ` dired-details-hide Emanuel Berg
2013-07-12 10:26 ` dired-details-hide Jambunathan K
2013-07-12 15:54 ` dired-details-hide Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjttjb04.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=idnael@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.