summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs/custom/fcuny-ui.el13
1 files changed, 10 insertions, 3 deletions
diff --git a/emacs/custom/fcuny-ui.el b/emacs/custom/fcuny-ui.el
index 9827c5e..97565bc 100644
--- a/emacs/custom/fcuny-ui.el
+++ b/emacs/custom/fcuny-ui.el
@@ -92,10 +92,17 @@
         ("Asia/Calcutta" "Bangalore")
         ("Asia/Tokyo" "Tokyo")))
 
+;; the following setup only works with emacs >=28 I think
 (when (boundp 'world-clock-list)
-  (setq world-clock-list t)
-  (setq world-clock-time-format "%R %z  %A %d %B")
-  (setq world-clock-timer-enable t)
+  (setq world-clock-list t))
+
+(when (boundp 'world-clock-time-format)
+  (setq world-clock-time-format "%R %z  %A %d %B"))
+
+(when (boundp 'world-clock-timer-enable)
+  (setq world-clock-timer-enable t))
+
+(when (boundp 'world-clock-timer-second)
   (setq world-clock-timer-second 60))
 
 (display-time-mode t)