sky-color-clock
sky-color-clock copied to clipboard
use with smart-mode-line
Is there a recommended way to use with https://github.com/Malabarba/smart-mode-line/ ? I did (add-to-list 'global-mode-string '(:eval (sky-color-clock)))
instead of (push '(:eval (sky-color-clock)) (default-value 'mode-line-format))
but I don't know if I'm messing anything else up.
My full config for reference:
(use-package sky-color-clock
:load-path "~/.emacs.d/sky-color-clock"
:config
(sky-color-clock-initialize calendar-latitude)
(sky-color-clock-initialize-openweathermap-client "API-Key" 1850144) ; Tokyo's City ID
(setq sky-color-clock-format "%k:%M")
(setq sky-color-clock-enable-emoji-icon t)
(add-to-list 'global-mode-string '(:eval (sky-color-clock)))
(display-time-mode -1))