https://github.com/josegpt/display-sunrise-sunset
[MOVED to https://git.sr.ht/~josegpt/display-sunrise-sunset] Display sunrise sunset in the mode line 🌅.
https://github.com/josegpt/display-sunrise-sunset
emacs emacs-lisp emacs-mode-line mode-line sunrise sunset
Last synced: 9 months ago
JSON representation
[MOVED to https://git.sr.ht/~josegpt/display-sunrise-sunset] Display sunrise sunset in the mode line 🌅.
- Host: GitHub
- URL: https://github.com/josegpt/display-sunrise-sunset
- Owner: josegpt
- License: gpl-3.0
- Created: 2022-07-17T15:49:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-17T15:49:57.000Z (over 3 years ago)
- Last Synced: 2025-01-16T07:15:52.616Z (11 months ago)
- Topics: emacs, emacs-lisp, emacs-mode-line, mode-line, sunrise, sunset
- Language: Emacs Lisp
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+TITLE: display-sunrise-sunset.el
#+AUTHOR: Jose G Perez Taveras
Display sunrise sunset in the mode line 🌅.
* Installation
** Manual
Download =display-sunrise-sunset.el= to your local directory.
*** Git
#+BEGIN_SRC shell
git clone https://github.com/josegpt/display-sunrise-sunset
#+END_SRC
*** Curl
#+BEGIN_SRC shell
curl -s -o display-sunrise-sunset.el https://raw.githubusercontent.com/josegpt/display-sunrise-sunset/main/display-sunrise-sunset.el
#+END_SRC
* Configuration
** use-package
#+BEGIN_SRC emacs-lisp
(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))
#+END_SRC
** Manual
Then add the =display-sunrise-sunset.el= path to your Emacs =load-path= and add the following to your Emacs config.
#+BEGIN_SRC emacs-lisp
(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)
#+END_SRC