Display sunrise sunset in the mode line π .
Download display-sunrise-sunset.el
to your local directory.
git clone https://github.com/josegpt/display-sunrise-sunset
curl -s -o display-sunrise-sunset.el https://raw.githubusercontent.com/josegpt/display-sunrise-sunset/main/display-sunrise-sunset.el
(use-package display-sunrise-sunset
:custom
(calendar-latitude 40.71)
(calendar-longitude -74.00)
(calendar-location-name "New York, NY")
:config
(display-sunrise-sunset-mode))
Then add the display-sunrise-sunset.el
path to your Emacs load-path
and add the following to your Emacs config.
(add-to-list 'load-path "~/emacs/path")
(setq calendar-latitude 40.71
calendar-longitude -74.00
calendar-location-name "New York, NY")
;; Interval in which display-sunrise-sunset.el will be updated.
;; (setq display-sunrise-sunset-interval (* 60 60 24))
(display-sunsrise-sunset-mode 1)