emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/moe-theme 882af74e0d 036/352: 1. Add document for variable


From: ELPA Syncer
Subject: [nongnu] elpa/moe-theme 882af74e0d 036/352: 1. Add document for variable `moe-theme-switch-by-sunrise-and-sunset` in README.
Date: Fri, 7 Jan 2022 03:59:04 -0500 (EST)

branch: elpa/moe-theme
commit 882af74e0d2cb8aead92d8b4310f31b786da8bbd
Author: kuanyui <azazabc123@gmail.com>
Commit: kuanyui <azazabc123@gmail.com>

    1. Add document for variable `moe-theme-switch-by-sunrise-and-sunset` in 
README.
---
 README.md | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 339230ff3e..5667bd0f60 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,7 @@ Or you can load theme just by adding:
     (load-file "~/.emacs.d/themes/moe-dark-theme.el")
 ```
 
-### Have A Good Mood Today?
+## Have A Good Mood Today?
 I prefer a terminal with a black-on-white color scheme. I found that in the 
daytime, sunlight is strong and black-on-white is more readable; However, 
white-on-black would be less harsh to the eyes at night.
 
 So if you like, you can add the following line to your `~/.emacs` to 
automatically switch between `moe-dark` and `moe-light` according to the system 
time:
@@ -62,6 +62,22 @@ So if you like, you can add the following line to your 
`~/.emacs` to automatical
 
 By adding the line above, your Emacs will have a light theme in the day and a 
dark one at night. =w=+
 
+### Live in Antarctica?
+Daytime is longer in summer but shorter in winter; or you live in a high 
latitude region which midnight-sun or polar-night may occur such as Finland or 
Antarctica?
+
+There's a variable `moe-theme-switch-by-sunrise-and-sunset` would solve your 
problem (default value is `t`)
+
+If this value is `nil`, `moe-theme-switcher` will switch theme at fixed time 
(06:00 and 18:00).
+
+If this value is `t` and both `calendar-latitude` and `calendar-longitude` are 
set properly, the switching will be triggered at the sunrise and sunset time of 
the local calendar.
+
+Take "Keelung, Taiwan" (25N,121E) for example, you can set like this:
+
+```lisp
+       (setq calendar-latitude +25)
+       (setq calendar-longitude +121)
+```
+
 ## Note
 ### No 256-Color Output?
 If your terminal emulator doesn't render 256-color output correctly, set its 
environment variable `TERM` to `xterm-256color`. For example, if you are using 
`Konsole`, navigate to `Edit Current Profile > General > Environment > Edit` 
and add the following line:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]