From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: dired-details-hide Date: Thu, 11 Jul 2013 22:21:23 +0530 Message-ID: <87zjttjb04.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373561407 27103 80.91.229.3 (11 Jul 2013 16:50:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jul 2013 16:50:07 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: daniel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 11 18:50:08 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UxK4G-0008M4-5b for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 18:50:08 +0200 Original-Received: from localhost ([::1]:40450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxK4F-0003cp-P4 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 12:50:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxK44-0003cU-Nf for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 12:49:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxK43-0005Ex-LU for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 12:49:56 -0400 Original-Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]:36057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxK43-0005Eq-DX for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 12:49:55 -0400 Original-Received: by mail-pd0-f179.google.com with SMTP id q10so7698197pdj.24 for ; Thu, 11 Jul 2013 09:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=w/aBJ1iFHPQdu9hydtm5zwZc/7qFbcj2S05VXP83M6U=; b=tLiboYBaFcWfrVcGvxoFs5dsZta1EJsPXYR1RaQwshabAPV0JacfcysmbgsPo2rKgQ fQ0lnqCEklXhXBB51d0lSa9cGShqVWwaAtLb3aqXbJ95OJOp2QE2BcExhe1mDCOP55wu /U/zpae89y0cPx4EXU/Rqw2QiNPMYtPD4RnsFqq4AOKR/Kst0SJSaIkspiD7BUHcXV/5 2hqOCMmyl8bfbQYUUvCtO5cHIUS5IqMVw/YJFrGYyilQHOJ41Zv36M0kvszs+N2o4xLU qFuquUWWl2fqvQa2F8bHRR8cOspVFnzmUoemheGeqBfEiruSxPx/x6hsEAUSQqjWHG5z v12A== X-Received: by 10.66.155.199 with SMTP id vy7mr39614544pab.69.1373561394485; Thu, 11 Jul 2013 09:49:54 -0700 (PDT) Original-Received: from debian-6.05 ([115.241.3.38]) by mx.google.com with ESMTPSA id s5sm40595634pbo.38.2013.07.11.09.49.49 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 11 Jul 2013 09:49:52 -0700 (PDT) In-Reply-To: (daniel's message of "Thu, 11 Jul 2013 17:44:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92056 Archived-At: daniel 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)