diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/init.el b/init.el index f5b8ab3..73f5685 100644 --- a/init.el +++ b/init.el | |||
@@ -2021,6 +2021,11 @@ | |||
2021 | (add-hook 'modus-themes-after-load-theme-hook | 2021 | (add-hook 'modus-themes-after-load-theme-hook |
2022 | (defun +modus-themes-mostly-monochrome () | 2022 | (defun +modus-themes-mostly-monochrome () |
2023 | "Set up mdous-themes to be mostly monochrome." | 2023 | "Set up mdous-themes to be mostly monochrome." |
2024 | ;; Major mode in the mode-line | ||
2025 | (defface +modeline-text-mode-face nil | ||
2026 | "Text-mode major mode face.") | ||
2027 | (defface +modeline-prog-mode-face nil | ||
2028 | "Prog-mode major mode face.") | ||
2024 | (modus-themes-with-colors | 2029 | (modus-themes-with-colors |
2025 | (custom-set-faces | 2030 | (custom-set-faces |
2026 | `(font-lock-builtin-face ((,class :inherit modus-themes-bold | 2031 | `(font-lock-builtin-face ((,class :inherit modus-themes-bold |
@@ -2050,14 +2055,11 @@ | |||
2050 | :foreground ,red-nuanced-fg))) | 2055 | :foreground ,red-nuanced-fg))) |
2051 | `(font-lock-todo-face ((,class :inherit font-lock-comment-face | 2056 | `(font-lock-todo-face ((,class :inherit font-lock-comment-face |
2052 | :foreground ,fg-header | 2057 | :foreground ,fg-header |
2053 | :background ,yellow-intense-bg)))) | 2058 | :background ,yellow-intense-bg))) |
2054 | ;; Major mode in the mode-line | 2059 | `(+modeline-text-mode-face ((,class :foreground ,blue |
2055 | (defface +modeline-text-mode-face `((,class ( :foreground ,blue | 2060 | :inherit modus-themes-bold))) |
2056 | :inherit modus-themes-bold))) | 2061 | `(+modeline-prog-mode-face ((,class :foreground ,magenta |
2057 | "Text-mode major mode face.") | 2062 | :inherit modus-themes-bold)))) |
2058 | (defface +modeline-prog-mode-face `((,class ( :foreground ,magenta | ||
2059 | :inherit modus-themes-bold))) | ||
2060 | "Prog-mode major mode face.") | ||
2061 | (:option +modeline-major-mode-faces `((text-mode . +modeline-text-mode-face) | 2063 | (:option +modeline-major-mode-faces `((text-mode . +modeline-text-mode-face) |
2062 | (prog-mode . +modeline-prog-mode-face) | 2064 | (prog-mode . +modeline-prog-mode-face) |
2063 | (t . bold)))))) | 2065 | (t . bold)))))) |
@@ -2161,6 +2163,11 @@ | |||
2161 | org-visibility-include-regexps '("\\.org\\'")) | 2163 | org-visibility-include-regexps '("\\.org\\'")) |
2162 | (org-visibility-enable-hooks)) | 2164 | (org-visibility-enable-hooks)) |
2163 | 2165 | ||
2166 | (setup (:straight org-wc) | ||
2167 | (:load-after org simple-modeline) | ||
2168 | (:also-load +org-wc) | ||
2169 | (add-hook 'org-mode-hook #'+org-wc-mode)) | ||
2170 | |||
2164 | (setup (:straight orglink) | 2171 | (setup (:straight orglink) |
2165 | (:option orglink-activate-in-modes '(text-mode prog-mode)) | 2172 | (:option orglink-activate-in-modes '(text-mode prog-mode)) |
2166 | (global-orglink-mode +1) | 2173 | (global-orglink-mode +1) |
@@ -2273,18 +2280,17 @@ | |||
2273 | (+modeline-concat | 2280 | (+modeline-concat |
2274 | '(+modeline-track | 2281 | '(+modeline-track |
2275 | simple-modeline-segment-misc-info)))) | 2282 | simple-modeline-segment-misc-info)))) |
2283 | +modeline-position | ||
2276 | simple-modeline-segment-process | 2284 | simple-modeline-segment-process |
2277 | +modeline-text-scale | ||
2278 | ,(+modeline-concat | 2285 | ,(+modeline-concat |
2279 | '(+modeline-god-mode | 2286 | '(+modeline-god-mode |
2280 | +modeline-kmacro-indicator | 2287 | +modeline-kmacro-indicator |
2281 | +modeline-reading-mode | 2288 | +modeline-reading-mode |
2282 | +modeline-narrowed) | 2289 | +modeline-narrowed |
2290 | +modeline-text-scale | ||
2291 | +modeline-input-method) | ||
2283 | ",") | 2292 | ",") |
2284 | +modeline-input-method | ||
2285 | +modeline-position | ||
2286 | +modeline-major-mode | 2293 | +modeline-major-mode |
2287 | +modeline-file-percentage | ||
2288 | +modeline-spacer))) | 2294 | +modeline-spacer))) |
2289 | (simple-modeline-mode +1)) | 2295 | (simple-modeline-mode +1)) |
2290 | 2296 | ||