From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Sort directories then files in Dired. Date: Mon, 06 Sep 2010 08:10:00 +1000 Organization: Unlimited download news at news.astraweb.com Message-ID: <87k4mzu9jb.fsf@puma.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291866837 1388 80.91.229.12 (9 Dec 2010 03:53:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 03:53:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 04:53:53 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQXZp-00074x-26 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 04:53:53 +0100 Original-Received: from localhost ([127.0.0.1]:50552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQXZo-0008Ph-Hs for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 22:53:52 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!news.alt.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:LCpSgQZAD+i2UlUFIgrP2jkBcHY= Original-Lines: 36 Original-NNTP-Posting-Host: 3e09cc5c.news.astraweb.com Original-X-Trace: DXC=Xe_9VHf^L; 96fPZ:J:\J] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76589 Archived-At: Oleksandr Gavenko writes: > ls have option --group-directories-first. But then I set > 'dired-listing-switches' to '-al --group-directories-first' > output seems damaged: > >  e:/home/devel/autorpg: > total used in directory 1 available 13039040 > 281474976729852 0drwxrwxrwx 1 sasha Отсутствует 0 2007-09-05 .. > 1407374883569819 0drwxrwxrwx 1 sasha Отсутствует 0 2009-08-24 . > 1125899906859437 0drwxrwxrwx 1 sasha Отсутствует 0 2009-08-24 .hg > 2533274790412740 1-rw-rw-rw- 1 sasha Отсутствует 209 2009-08-24 README > 562949953438149 0drwxrwxrwx 1 sasha Отсутствует 0 2009-08-24 > very-dumb-game You could use the ls-lisp package, which comes with emacs and set ls-lisp-dirs-first to have the directories listed first in dired. You may need to add (require 'ls-lisp) to your .emacs ,----[ C-h v ls-lisp-dirs-first RET ] | ls-lisp-dirs-first is a variable defined in `ls-lisp.el'. | Its value is t | | Documentation: | Non-nil causes ls-lisp to sort directories first in any ordering. | (Or last if it is reversed.) Follows Microsoft Windows Explorer. | | You can customize this variable. | | [back] `---- Tim -- tcross (at) rapttech dot com dot au