From 16f782c350b0e97cdf4b58e23797cd0607c82d5b Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Thu, 7 Apr 2011 19:00:46 +0300 Subject: [PATCH] lisp/eshell/em-ls.el: use ISO 8601 in ls -l output Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- lisp/eshell/em-ls.el | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el index 4ef259d..c7da459 100644 --- a/lisp/eshell/em-ls.el +++ b/lisp/eshell/em-ls.el @@ -57,6 +57,13 @@ properties to colorize its output based on the setting of :type 'hook :group 'eshell-ls) +(defcustom eshell-ls-date-format "%Y-%m-%d " + "*How to display time information in `eshell-ls-file'. +For current locale, use \"%b \%e". +See `format-time-string'." + :type 'string) + :group 'eshell-ls) + (defcustom eshell-ls-initial-args nil "If non-nil, this list of args is included before any call to `ls'. This is useful for enabling human-readable format (-h), for example." @@ -508,7 +515,7 @@ whose cdr is the list of file attributes." str)) " " (format-time-string (concat - "%b %e " + eshell-ls-date-format (if (= (nth 5 (decode-time (current-time))) (nth 5 (decode-time (nth (cond -- 1.7.4.1