]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Extend zoneinfo-style-world-list to include Amsterdam clock
authorEshel Yaron <eshel@areionsec.com>
Thu, 12 May 2022 19:59:55 +0000 (22:59 +0300)
committerEshel Yaron <eshel@areionsec.com>
Thu, 12 May 2022 19:59:55 +0000 (22:59 +0300)
.emacs.d/esy.org

index c90e3eb284fc76281395e6944d8b22d72870fa6f..96c427fb1884a02f054e32fbedfa49574905d6c3 100644 (file)
@@ -1258,6 +1258,22 @@ include =emacs-lisp-mode= and =lisp-interaction-mode=.
   (add-hook 'after-init-hook #'esy/setup-misc)
 #+end_src
 
+** Show the time in Amsterdam in =world-clock=
+:PROPERTIES:
+:CUSTOM_ID: world-clock-amsterdam
+:CreatedAt: <2022-05-12 Thu>
+:CapturedAt: [[file:~/checkouts/dotfiles/.emacs.d/esy.org::#footer][file:~/checkouts/dotfiles/.emacs.d/esy.org::#footer]]
+:CapturedAs: Emacs configuration fragment
+:END:
+
+Add the timezones of places of interest to the list of clocks shown by
+=M-x world-clock=. The list of named timezones is maintained by [[https://www.iana.org/time-zones][IANA]].
+
+#+begin_src emacs-lisp
+  (with-eval-after-load 'time
+    (add-to-list 'zoneinfo-style-world-list '("Europe/Amsterdam" "Amsterdam")))
+#+end_src
+
 * Elisp Footer
 :PROPERTIES:
 :CUSTOM_ID: footer