branch: elpa/moe-theme
commit 7d13f3c4e1cf64180dbebbb30a2c428324c047e6
Author: kuanyui <[email protected]>
Commit: kuanyui <[email protected]>
1. Fix commentary format and content.
---
moe-theme-pkg.el | 40 ++++++++++++++++++++++++++++++++++++----
1 file changed, 36 insertions(+), 4 deletions(-)
diff --git a/moe-theme-pkg.el b/moe-theme-pkg.el
index 2de48ad665..d8057497dd 100644
--- a/moe-theme-pkg.el
+++ b/moe-theme-pkg.el
@@ -2,21 +2,53 @@
;; This program is not part of GNU Emacs.
;; But it is distributed under GPL v3 :-)
+;;
;; Author: kuanyui <[email protected]>
;;; Commentary:
;; You can take a look at screenshots and more details on:
;; https://github.com/kuanyui/moe-theme.el
-
-;; Usage:
-
+;;
+;; Requirements
+;;
+;; - Emacs 24 (or above)
+;; - 256 colors terminal (or higher)
+;;
+;; Usage
+;;
;; Add you to your .emacs:
-
;;
;; (load-theme 'moe-dark t)
+;; or
+;; (load-theme 'moe-light t)
+;;
+;;
+;; Auto Switching
+;;
+;; 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:
+;;
+;; (require 'moe-theme-switcher)
+;;
+;; 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:
;;
+;; (setq calendar-latitude +25)
+;; (setq calendar-longitude +121)
+;;; Code:
;;;###autoload
(when load-file-name