From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Sort directories then files in Dired. Date: Fri, 17 Sep 2010 16:25:09 +0300 Message-ID: References: <87bp8chscb.fsf@zemblan.newkuwait.org> <66CFF92C1D33493883070DA90A8FE6B7@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1284729986 5741 80.91.229.12 (17 Sep 2010 13:26:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 13:26:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 17 15:26:25 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 1Owax7-00028w-Be for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Sep 2010 15:26:21 +0200 Original-Received: from localhost ([127.0.0.1]:52100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owawv-0005nQ-1c for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Sep 2010 09:25:57 -0400 Original-Received: from [140.186.70.92] (port=52159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwawT-0005nL-8u for help-gnu-emacs@gnu.org; Fri, 17 Sep 2010 09:25:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwawR-0005NP-L6 for help-gnu-emacs@gnu.org; Fri, 17 Sep 2010 09:25:28 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:43827) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwawR-0005N3-EI for help-gnu-emacs@gnu.org; Fri, 17 Sep 2010 09:25:27 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OwawP-0001qa-2H for help-gnu-emacs@gnu.org; Fri, 17 Sep 2010 15:25:25 +0200 Original-Received: from 174-5-92-178.pool.ukrtel.net ([178.92.5.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 15:25:24 +0200 Original-Received: from gavenkoa by 174-5-92-178.pool.ukrtel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 15:25:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 174-5-92-178.pool.ukrtel.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <66CFF92C1D33493883070DA90A8FE6B7@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:74981 Archived-At: On 2010-09-06 0:16, Drew Adams wrote: > FYI - dired-sort-menu.el and dired-sort-menu+.el give you all kinds of useful > sort orders for Dired. > > http://www.emacswiki.org/emacs/DiredSortMenu > Thanks all for replay. 'dired-listing-switches' not work for me because I use Emacs on Windows and so 'ls-lisp-use-insert-directory-program' by default set to 'nil'. I check 'ls-lisp.el' and found easy solution for my needs. 'ls-lisp-dirs-first' is essential part of them, but you can find they all useful: ;; If non-nil - use 'insert-directory-program', which I dislike. (setq ls-lisp-use-insert-directory-program nil) (setq ls-lisp-ignore-case t) (setq ls-lisp-dirs-first t) (if (eq system-type 'windows-nt) (setq ls-lisp-verbosity nil) (setq ls-lisp-verbosity '(links uid gid))) ;; Force use 'ls-lisp-format-time-list'. (setq ls-lisp-use-localized-time-format t) (setq ls-lisp-format-time-list '("%Y-%m-%d %H:%M" "%Y-%m-%d ")) -- Best regards and happy hacking!