all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to change the default date format?
@ 2019-07-16  4:32 Marcin Borkowski
  2019-07-18  8:56 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Borkowski @ 2019-07-16  4:32 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-19 19:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-16  4:32 How to change the default date format? Marcin Borkowski
2019-07-18  8:56 ` Eli Zaretskii
2019-07-19 19:38   ` Marcin Borkowski

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.