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

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

How to change the default date format?


From: Marcin Borkowski
Subject: How to change the default date format?
Date: Tue, 16 Jul 2019 06:32:54 +0200
User-agent: mu4e 1.1.0; emacs 27.0.50

Hello everyone,

I used to use my window manager's language settings, which (presumably)
included LC_ALL and/or other LC_* environment variables, and so I had
the "correct" date format in Emacs when I said
`(format-time-string "%x %X" ...)'.

Now that I've changed my wm to a more bare-bones one, how do I change
the locale/langage settings _from within Emacs_, in my init.el?

By reading through the manual, the docstring of `set-locale-environment'
and some trial and error, I found out about
`(set-locale-environment "pl_PL.utf-8")',
after trying "pl" and "pl_PL" as arguments to no avail.  Is this the
preferred method?

TIA,

--
Marcin Borkowski
http://mbork.pl



reply via email to

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