From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Alexander Klimov <alserkli@inbox.ru>
Newsgroups: gmane.emacs.devel
Subject: Re: global dired-hide-details-mode
Date: Mon, 7 Nov 2016 16:11:28 +0200
Message-ID: <TheMailAgent.3d2a8118@1177bdf6>
References: <TheMailAgent.5c3a402f@61f81390> <8737j3jtep.fsf@web.de>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Trace: blaine.gmane.org 1478528055 32271 195.159.176.226 (7 Nov 2016 14:14:15 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 7 Nov 2016 14:14:15 +0000 (UTC)
Cc: emacs-devel@gnu.org
To: Michael Heerdegen <michael_heerdegen@web.de>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 07 15:14:08 2016
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1c3kgT-0006Ui-3V
	for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2016 15:14:01 +0100
Original-Received: from localhost ([::1]:54288 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1c3kgV-00085x-5k
	for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2016 09:14:03 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38599)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <alserkli@inbox.ru>) id 1c3keK-00071U-O3
	for emacs-devel@gnu.org; Mon, 07 Nov 2016 09:11:50 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <alserkli@inbox.ru>) id 1c3keF-0005eF-F0
	for emacs-devel@gnu.org; Mon, 07 Nov 2016 09:11:48 -0500
Original-Received: from smtp1.mail.ru ([94.100.179.111]:49287)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <alserkli@inbox.ru>) id 1c3keF-0005d0-2s
	for emacs-devel@gnu.org; Mon, 07 Nov 2016 09:11:43 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru;
	s=mail; 
	h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To:Subject:cc:To:From:Date;
	bh=IS/nu822rzpIHhVTzlg2/8qPKiqNFLkgbneeTPhhioo=; 
	b=NDyz2TEiIiM1jK+Skt2cy83JpBd1EmqBNl4Mh0YE7mffPakBPwMXm26PcMKwJKoBTfr1sahH5ka2Ngart9AZg5Z+jy+dO1hvFsaRliwZmiVICF6VZKYOmAIBYvEeuASB45Xuc2tpnXaSYuT/mhbx0cjnaaD0lwHlWH3I5BhVuWI=;
Original-Received: from 62.128.58.36.static.012.net.il ([62.128.58.36]:44524
	helo=nfms.eitan.ac.il)
	by smtp1.mail.ru with esmtpa (envelope-from <alserkli@inbox.ru>)
	id 1c3keC-0000s3-Cv; Mon, 07 Nov 2016 17:11:40 +0300
In-Reply-To: <8737j3jtep.fsf@web.de>
Authentication-Results: smtp1.mail.ru; auth=pass smtp.auth=alserkli@inbox.ru
	smtp.mailfrom=alserkli@inbox.ru
X-E1FCDC63: 4B34EEDFC4B74557449B243792A5A629074A40F52AF1438D
X-E1FCDC64: F9322C4D7DADA4924F1D6DB0BA863B2145EBC284698D8A77354BF2353CAAA8DFB854597C55E94BBE
X-Mailru-Sender: 6EF946BCA04EA61162CDC21F1E8B7737A8118025816BFD5F5D477C14E125BFF4BB173E178FD74C35
X-Mras: OK
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 94.100.179.111
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel/>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.devel:209244
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/209244>

On Mon, 7 Nov 2016, Michael Heerdegen wrote:
> > Looks like there is no way to customize Emacs so that every 
> > new dired buffer starts with dired-hide-details-mode, but g 
> > (that is revert-buffer) keeps the details state.
> 
> Doesn't
> 
> (add-hook 'dired-mode-hook
> 	  (lambda () (dired-hide-details-mode +1)))
> 
> behave like that?

Yes, thanks!

Somehow I missed dired-mode-hook, probably I was under impression that 
using it instead of dired-before-readin-hook will force reading 
the directory twice.

Btw, the following also works:

 (add-hook 'dired-mode-hook 'dired-hide-details-mode)

-- 
Regards,
ASK