Jousimies/.emacs.d

modus-theme

Jousimies opened this issue · 1 comments

** COMMENT modus-themes
我的默认主题是 modus-themes ,有黑白配色两套。这个包的自定义性特别高,详细的设置见[[https://protesilaos.com/emacs/modus-themes][官方手册]]。

Modus-themes 的暗色模式实在是太黑了,长时间看很不舒服。椐据 MacOS 的系统颜色,替换了背景色。

  (setq modus-themes-italic-constructs t)
  (setq modus-themes-bold-constructs nil)
  (setq modus-themes-region '(accented))
  (setq modus-themes-lang-checkers '(straight-underline text-also intense))
  (setq modus-themes-links '(neutral-underline))
  (setq modus-themes-hl-line '(intense))
  (setq modus-themes-paren-match '(accented intense))
  (setq modus-themes-prompts '(intense background gray bold))
  (setq modus-themes-completions '((matches . (extrabold intense))
                                   (selection . (underline))
                                   (popup . (intense))))
  (setq modus-themes-org-blocks 'tinted-background)
  (setq modus-themes-org-agenda '((header-block . (variable-pitch 1.2))
                                  (habit . traffic-light)))
  (setq modus-themes-headings '((t . (rainbow))))

Modus-theme 的主题色有些我还是不喜欢,根据自己的喜好更改了一些颜色设置。其中 bg-main bg-dim 控制背景色。 magenta-nuanced-bg 控制 org-src block 的背景色。

  (setq modus-themes-operandi-color-overrides '((bg-main . "#FFFFFF")
                                                (bg-dim . "#FFFFFF")
                                                (bg-hl-line . "#FFFFFF")
                                                (bg-active . "#FFFFFF")
                                                (bg-inactive . "#FFFFFF")
                                                (bg-tab-bar . "#FFFFFF")
                                                (bg-tab-active . "#FFFFFF")
                                                (bg-tab-inactive . "#FFFFFF")
                                                (blue . "#252321")
                                                (magenta-nuanced-bg . "#F2F0EF")))
  (setq modus-themes-vivendi-color-overrides '((bg-main . "#1F1F1E")
                                               (bg-dim . "#1F1F1E")
                                               (bg-hl-line . "#1F1F1E")
                                               (bg-active . "#1F1F1E")
                                               (bg-inactive . "#1F1F1E")
                                               (bg-tab-bar . "#1F1F1E")
                                               (bg-tab-active . "#1F1F1E")
                                               (bg-tab-inactive . "#1F1F1E")
                                               (blue . "#FFFFFF")
                                               (magenta-nuanced-bg . "#343435")))

(setq modus-themes-mixed-fonts t)