summaryrefslogtreecommitdiff
path: root/emacs/custom/fcuny-ui.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-25 12:05:36 -0700
committerFranck Cuny <franck@fcuny.net>2021-10-25 12:05:36 -0700
commit372db6758e3875cceba45e783b8ff850454ad303 (patch)
treebd3b589415da07fe6ad50b996a7abee5f37d44e0 /emacs/custom/fcuny-ui.el
parentemacs: override the background for the theme (diff)
downloademacs.d-372db6758e3875cceba45e783b8ff850454ad303.tar.gz
emacs: set world-clock only when variables exist
Diffstat (limited to 'emacs/custom/fcuny-ui.el')
-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)