diff options
| author | Yousef Jan <yousefjan24000@gmail.com> | 2026-09-02 18:29:27 +0300 |
|---|---|---|
| committer | Yousef Jan <yousefjan24000@gmail.com> | 2026-09-02 18:29:27 +0300 |
| commit | d4c7ed0ead8ee6c28abd900371bcaaf8aa4fc1b4 (patch) | |
| tree | 057eb2689904fa567d1bb9391d982319e985b0b1 /doom/config.el | |
| parent | 2b1dfaf36239ddad539416db262dcc5d8b08d67b (diff) | |
Diffstat (limited to 'doom/config.el')
| -rw-r--r-- | doom/config.el | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/doom/config.el b/doom/config.el index 49b1e4e..dbc511d 100644 --- a/doom/config.el +++ b/doom/config.el @@ -60,7 +60,28 @@ (set-face-attribute 'font-lock-variable-name-face nil :foreground "#FCFCFC") (set-face-attribute 'font-lock-warning-face nil :foreground my/syntax-function :weight 'bold) (set-face-attribute 'font-lock-regexp-grouping-backslash nil :foreground my/syntax-function) - (set-face-attribute 'font-lock-regexp-grouping-construct nil :foreground my/syntax-function)) + (set-face-attribute 'font-lock-regexp-grouping-construct nil :foreground my/syntax-function) + ;; Emacs 29+/tree-sitter faces. `doom-plain-dark' leaves these grey, and + ;; treesit modes tag most of a buffer with them (calls, variable *uses*, + ;; operators, brackets, numbers), which is what washed the colours out. + (dolist (spec '((font-lock-function-call-face . function) + (font-lock-variable-use-face . variable) + (font-lock-property-name-face . type) + (font-lock-property-use-face . type) + (font-lock-number-face . type) + (font-lock-operator-face . keyword) + (font-lock-bracket-face . variable) + (font-lock-delimiter-face . variable) + (font-lock-punctuation-face . variable) + (font-lock-misc-punctuation-face . variable))) + (when (facep (car spec)) + (set-face-attribute + (car spec) nil + :foreground (pcase (cdr spec) + ('function my/syntax-function) + ('keyword my/syntax-keyword) + ('type my/syntax-type) + ('variable "#FCFCFC")))))) (my/setup-syntax-highlighting) (add-hook 'doom-load-theme-hook #'my/setup-syntax-highlighting 40) @@ -551,7 +572,7 @@ (org-agenda-overriding-header "\nTODAY\n") (org-agenda-prefix-format " %?-12t %s"))) (tags-todo "-STYLE=\"habit\"" - ((org-agenda-overriding-header "\ALL TASKS\n") + ((org-agenda-overriding-header "ALL TASKS\n") (org-agenda-sorting-strategy '(priority-down)) (org-agenda-remove-tags t) (org-agenda-prefix-format " %?-12t %s")))))))) |