Skip to content

josegpt/display-sunrise-sunset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

display-sunrise-sunset.el

Display sunrise sunset in the mode line πŸŒ….

Installation

Manual

Download display-sunrise-sunset.el to your local directory.

Git

git clone https://github.com/josegpt/display-sunrise-sunset

Curl

curl -s -o display-sunrise-sunset.el https://raw.githubusercontent.com/josegpt/display-sunrise-sunset/main/display-sunrise-sunset.el

Configuration

use-package

(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))

Manual

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)