[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.

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))))
- [nongnu] elpa/moe-theme 21f83424b1 089/352: Complete redone of the theme switcher., (continued)
- [nongnu] elpa/moe-theme 21f83424b1 089/352: Complete redone of the theme switcher., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 9373bdc918 093/352: Fixed so that the theme won't be reapplied if it was the last theme to be applied., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme ab9cb998a3 091/352: Match comint mode colours with eshell., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme ce01e0af47 094/352: Switch to gray tables in the dark theme., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 96d21bbf58 097/352: Merge pull request #15 from ToJa92/master, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 72efc3bfd3 099/352: Lighter green for arguments in js2 mode., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 0de97171e1 098/352: What am I doing...orz, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 5f5d77802f 012/352: 1. Modified README and improve the themes., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 43f162a68d 013/352: 1. Fix flaw in twmode when switch moe-dark and moe-light., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme c9273d4c12 016/352: 1.Fix invisible org-special-keyword when switch from moe-dark from moe light., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme a4f9e0bbc1 017/352: 1. Add "auto-switch-theme" instructions in README.md.,
ELPA Syncer <=
- [nongnu] elpa/moe-theme 7a87892887 019/352: 1. Fix invisible secondary-selection and smerge., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme b8a0a20555 020/352: 1. Fix the parentheses of rainbow-delimiter in moe-light without bold 2. ...and set moe-dark with nil., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 4f939a924e 023/352: Fix strange bahavior of sunrise-sunset when buffer's width is too narrow.(Thanks to letoh!), ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme ba52799d37 025/352: 1. Add .gitignore, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 4bd084d642 027/352: 1. Change screenshots's width for GitHub's new interface...囧, ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme c8b33136e0 026/352: 1. fix a typo in README., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 992a7054aa 028/352: 1. Try to link to raw pics., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 62073def06 031/352: 1.Nothing., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme b51fddb38a 033/352: 1. Make comments italic., ELPA Syncer, 2022/01/07
- [nongnu] elpa/moe-theme 11d01a30b1 041/352: 1. The default foreground of moe-dark changed from #dadada to #c6c6c6, ELPA Syncer, 2022/01/07