From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Impossible to customize world clock
Date: Tue, 09 Apr 2024 20:41:20 +0200 [thread overview]
Message-ID: <87r0fez8dr.fsf@dataswamp.org> (raw)
In-Reply-To: 86a5m2wfkz.fsf@gnu.org
Eli Zaretskii wrote:
>>>> I add a new one (Europe/Berlin):
>>>>
>>>> '(zoneinfo-style-world-list
>>>> '(("America/Los_Angeles" "Seattle")
>>>> ("America/New_York" "New York")
>>>> ("Europe/London" "London")
>>>> ("Europe/Paris" "Paris")
>>>> ("Asia/Calcutta" "Bangalore")
>>>> ("Asia/Tokyo" "Tokyo")
>>>> ("Europe/Berlin" "Germany"))))
>>>
>>> How would your suggestion help him to "add Europe/Berlin"?
>>
>> When looking how to add Berlin, he'd search for the vars to
>> change and would find `world-clock-list` [...]
>
> That's not what I meant.
Guys, what seems to be the problem?
The clock can be setup pretty straightforwardly, for example
like this:
;;; -*- lexical-binding: t -*-
;;
;; this file:
;; https://dataswamp.org/~incal/emacs-init/world-clock-incal.el
(require 'time)
(defalias 'wc #'world-clock)
(setq world-clock-time-format " %F %R UTC%z %Z")
(define-key world-clock-mode-map "u" (lambda () (interactive)
(world-clock-update) ))
(setq zoneinfo-style-world-list
(list
'("America/Los_Angeles" "Los Angeles")
'("America/New_York" "New York")
'("Europe/London" "London")
'("Europe/Paris" "Paris")
'("Europe/Berlin" "Berlin")
'("Europe/Stockholm" "Stockholm")
'("Europe/Moscow" "Moscow")
'("Asia/Shanghai" "Shanghai")
))
(provide 'world-clock-incal)
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2024-04-09 18:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-08 19:49 Impossible to customize world clock Kepa via Users list for the GNU Emacs text editor
2024-04-08 20:45 ` tpeplt
2024-04-09 4:00 ` Eli Zaretskii
2024-04-09 13:46 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 14:32 ` Eli Zaretskii
2024-04-09 15:12 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 15:28 ` Eli Zaretskii
2024-04-09 16:52 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 18:34 ` Eli Zaretskii
2024-04-09 18:41 ` Emanuel Berg [this message]
2024-04-10 2:32 ` Eli Zaretskii
2024-04-10 2:48 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-10 13:53 ` Eli Zaretskii
2024-04-09 13:52 ` tpeplt
2024-04-09 2:36 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2024-04-13 12:15 Kepa via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r0fez8dr.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.