help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sort directories then files in Dired.


From: Oleksandr Gavenko
Subject: Re: Sort directories then files in Dired.
Date: Fri, 17 Sep 2010 16:25:09 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

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 via email to

[Prev in Thread] Current Thread [Next in Thread]