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

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

[nongnu] elpa/moe-theme a4f9e0bbc1 017/352: 1. Add "auto-switch-theme" i


From: ELPA Syncer
Subject: [nongnu] elpa/moe-theme a4f9e0bbc1 017/352: 1. Add "auto-switch-theme" instructions in README.md.
Date: Fri, 7 Jan 2022 03:59:02 -0500 (EST)

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

    1. Add "auto-switch-theme" instructions in README.md.
    2. Some other modified in README.
---
 README.md         | 51 +++++++++++++++++++++++++--------------------------
 moe-dark-theme.el |  2 +-
 2 files changed, 26 insertions(+), 27 deletions(-)

diff --git a/README.md b/README.md
index ed82a65c16..5354fc4e21 100644
--- a/README.md
+++ b/README.md
@@ -4,20 +4,19 @@ Just another Emacs theme.
 
![Screenshot](https://github.com/kuanyui/moe-theme.el/raw/master/pics/screenshot.png)
 This theme supports Emacs 24 native theme.
 # Support
-`moe-theme.el` provide good-looking[tm] and quite full-support font-faces 
include:
+`moe-theme.el` provide good-looking[tm] and quite fully-supported font-faces 
include:
 * Dired/Dired+
 * Helm
 * Org-mode
+* Magit
 * Markdown-mode
 * popup/Auto-complete-mode
+* Rainbow-delimiters
 * Twittering-mode
 * undo-tree
 * ......and More!
 
-> I am a blockquote
-**bold**
-*A quick black tux jumps over the lazy dog*
-This theme (include pictures) is released under GPL v3.
+
 
 ## Requirements
 * Emacs 24 (or above)
@@ -31,18 +30,32 @@ Download the one you prefer to `~/.emacs.d/themes`.Then, 
add these to your init
        ;;customize theme
        (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
        (load-theme 'moe-dark t)
-       (enable-theme 'moe-dark)
     
 Or you can load theme just by adding:    
 
     (load-file "~/.emacs.d/themes/moe-dark-theme.el"))
-    
+
+### Have A Good Mood Today?
+You can also add these to your `.emacs` to automatically switch `moe-dark` and 
`moe-light` according to day or night:
+
+    (defun auto-switch-moe-theme ()
+       (let ((now (string-to-int (format-time-string "%H"))))
+          (if (and (>= now 06) (<= now 17))
+                  (load-theme 'moe-light) (load-theme 'moe-dark))
+                      nil))
+    (run-with-timer 0 (* 1 60) 'auto-switch-moe-theme)
+
+From now on, your Emacs will have a light theme within day and have a dark on 
in night. =w=+
+
 ## Note
-### Doesn't have a 256-colors terminal?
-If you use `Konsole`, it can be customized in `Edit Current 
Profile>General>Environment>Edit`
+### 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:
 
     TERM=xterm-256color
-    
+
 If you also use `tmux`, add this to `~/.tmux.conf`, too:
        
     set -g default-terminal "screen-256color"
@@ -60,19 +73,5 @@ The mode you're using has an ugly looking? `Moe-theme` 
doesn't support the mode
 ## Known Bugs
 * When type characters with IM (e.g. fcitx), and run Emacs under terminal 
emulator (e.g. Konsole) with `moe-light-theme`; when you type words in IM, the 
string embedded in Emacs may be very insignificant (But as you output the word 
from IM, it turns normal).
 
-
-沒想到我竟然也有開github repository的一天啊。
-
-當然,這次依舊奉行我那一貫不會寫程式(tm)的原則,這只是個Emacs theme,以後大概也不會做類似的事了,頂多也只會做這種程度的東西而已。
-
-非常的歡迎push commit。
-
-一開始是為了解決Emacs24裡預設的theme會導致completions選單裡的字看不見等等怪異問題,才開始想辦法看要如何自訂Emacs 
24的native 
theme。如果我知道有tomorrow-theme.el,我或許當初就不會做這個了。然而因為自己龜毛,一旦了解Emacs的theme該如何寫後,就開始強迫症發作地想把一切都弄得更好看(其實後來也發現,tomorrow-theme寫得也不見得完整,所以我其實應該還是會自己做),只要是自己有在使用的mode,所有不滿意的地方都全部寫上去。
-
-啊,於是就有了moe-theme.el
-
-我不會寫程式,然而還使用Emacs應該是件有點反常的事:我連寫theme寫錯了都不太會除錯...
-
-我盡量兼顧配色美感與可讀性,所以moe-dark跟moe-light是互相獨立、分開寫的,例如黃色在淡色背景根本看不到,基本上不能用。另外moe-light真的比較難做,畢竟字的顏色普遍都不容易在淡色背景中顯現出來,所以辨識度一定會比較差。如果你很重視辨識度,那請選擇moe-dark。
-
-希望您會喜歡這個moe-theme.el
+## License
+`moe-theme.el` (include images) is released under GPL v3.
diff --git a/moe-dark-theme.el b/moe-dark-theme.el
index dd096f91f0..2acc4d718c 100644
--- a/moe-dark-theme.el
+++ b/moe-dark-theme.el
@@ -117,7 +117,7 @@ Moe, moe, chew!")
    `(org-scheduled-previously ((,class (:foreground ,red-1))))
    `(org-scheduled-today ((,class (:foreground ,blue-1))))
    `(org-special-keyword ((,class (:foreground ,yellow-4 :background 
,yellow-0))))
-   `(org-table ((,class (:foreground ,white-1 :background ,black-3))))
+   `(org-table ((,class (:foregrond ,white-1 :background ,black-3))))
    `(org-time-grid ((,class (:foreground ,orange-2))))
    `(org-upcoming-deadline ((,class (:inherit font-lock-keyword-face))))
    `(org-warning ((,class (:bold t :foreground ,red-3 :weight bold))))



reply via email to

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