Another (very elegant) solution is the theme changer.
Given the location and color themes of day and night, this file provides a theme change function that selects a suitable theme depending on whether it is day or night. He will continue to change themes at sunrise and sunset. To install:
Set location:
(setq calendar-location-name "Dallas, TX") (setq calendar-latitude 32.85) (setq calendar-longitude -96.85)
Indicate the day and night topics:
(require 'theme-changer) (change-theme 'tango 'tango-dark)
The project is hosted on Github and can be installed via melpa.
Alexander Poslavsky
source share