|Subject:||Re: UK date format in Dired|
|Date:||Fri, 26 Jan 2007 22:38:30 +0000|
Am 26.01.2007 um 21:41 schrieb Graham Smith:
> Thanks, be fine and I have added this line to my .emacs , but it
> has made no difference.
> Is the "locale" in the code the actual text or am I meant to
> replace with a regional name eg "european"
I remember a time on MS DOS or MS Windows where a shell interpreter
was available, command.com, in its own window (or terminal). Maybe
you have a similiar thing by hand. It should work to invoke 'ls --
help' to see what the ls command understands. The GNU ls command I
use in my Emacsen on Mac OS X tells me (usually in German, because I
have the environment variable LANG set to some German value) that it
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
-B, --ignore-backups do not list implied entries ending with ~
-D, --dired generate output designed for Emacs'
-h, --human-readable with -l, print sizes in human readable
(e.g., 1K 234M 2G)
--si likewise, but use powers of 1000 not 1024
-l use a long listing format
--time-style=STYLE with -l, show times using style STYLE:
full-iso, long-iso, iso, locale, +FORMAT.
FORMAT is interpreted like `date'; if
non-recent files and FORMAT2 to recent
if STYLE is prefixed with `posix-', STYLE
takes effect only outside the POSIX locale
And I tried exactly
'(dired-listing-switches "-alD --time-style=locale")
in an UK based environment and it worked. 'ls --version' returns for
me as first line
ls (GNU coreutils) 5.96
If you do not have GNU ls available, then GNU Emacs uses some ls
emulation. This one cannot be switched to display the date in some
I have one (actually two) more thing(s) set:
(setq insert-directory-program "gls" dired-use-ls-dired t)
This tells GNU Emacs to use GNU ls instead of a built-in or system ls
insert-directory-program is a variable defined in `files.el'.
Absolute or relative name of the `ls' program used by `insert-
dired-use-ls-dired is a variable defined in `dired.el'.
Non-nil means Dired should use `ls --dired'.
Could be they are accessible via customisation ...
Encryption: A powerful algorithmic encoding technique employed in
of computer manuals.
|[Prev in Thread]||Current Thread||[Next in Thread]|