Displaying Sunrise/Sunset in Emacs

If you’d like to know what time the sun will rise and set in your area, it turns out to be simple to add it to your Org mode agenda. Jon-Michael Deldin shows how.

The ability to display them is already built into the Emacs Diary. All you have to do is specify your latitude/longitude in your init.el and add

* Calendar

to one of the files in your agenda list. See Deldin’s post for the details including how to get your lat/lon if your computer or phone won’t tell you.

This entry was posted in General and tagged , . Bookmark the permalink.
  • If we want, we can just run "M-x sunrise-sunset RET" at any time of course.