all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Sort directories then files in Dired.
Date: Fri, 17 Sep 2010 16:25:09 +0300	[thread overview]
Message-ID: <i6vq7n$56k$1@dough.gmane.org> (raw)
In-Reply-To: <66CFF92C1D33493883070DA90A8FE6B7@us.oracle.com>

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!




  reply	other threads:[~2010-09-17 13:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-05 18:47 Sort directories then files in Dired Oleksandr Gavenko
2010-09-05 20:02 ` Thamer Mahmoud
2010-09-05 21:16   ` Drew Adams
2010-09-17 13:25     ` Oleksandr Gavenko [this message]
     [not found] <mailman.3.1283713178.26984.help-gnu-emacs@gnu.org>
2010-09-05 22:10 ` Tim X

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='i6vq7n$56k$1@dough.gmane.org' \
    --to=gavenkoa@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.