如果您使用 ls 仿真,则实际上有一个选项,如在 Windows 上:
(setq ls-lisp-dirs-first t)
有关所有选项,请参见 (customize-group 'ls-lisp)。有一些有用的——
; hide the link count, user, and group columns - default is '(links uid gid)
(setq ls-lisp-verbosity nil)
; use ISO dates (the first is for recent dates, second for old dates)
(setq ls-lisp-format-time-list '("%Y-%m-%d %H:%M" "%Y-%m-%d %H:%M"))
(setq ls-lisp-use-localized-time-format t)
给你一个这样的列表 -
total used in directory 27734 available 171804716
dr-xr-xr-x 40960 2015-02-12 00:47 .
drwxrwxrwx 16384 2015-02-11 17:37 ..
dr-xr-xr-x 32768 2015-02-07 09:41 bookshelf
drwxrwxrwx 12288 2014-12-03 00:06 library
drwxrwxrwx 8192 2014-08-17 08:21 office
dr-xr-xr-x 16384 2015-02-10 19:54 projects
-rw-rw-rw- 14073 2015-01-31 17:25 android.org
-rw-rw-rw- 65736 2015-02-05 17:09 archive.org