新版本的spacemacs todo 贴签太丑了

新版的 spacemacs 是11.07 号的版本,github 官方下载的,但是发现一个问题,todo的贴签颜色太丑了,能有其他方式修改么?

   (setq org-todo-keyword-faces '(("TODO" . "red")
                                  ("DOING" . "yellow")
                                  ("DONE" . "green")))

把里面的 red/yellow/green 换成自己想要的颜色。

见文档:Faces for TODO keywords (The Org Manual)

1 个赞

太感谢啦,谢谢大大

我是用了这个解决了 (add-hook 'org-mode-hook (lambda () (hl-todo-mode -1) nil))

详见 Inconsistent highlighting in org mode · Issue #9950 · syl20bnr/spacemacs · GitHub

1 个赞

最新的hl-todo-mode已经处理了org-mode时的情况,可以直接global-hl-todo-mode了:

;;;###autoload
(define-globalized-minor-mode global-hl-todo-mode
  hl-todo-mode hl-todo--turn-on-mode-if-desired)

(defun hl-todo--turn-on-mode-if-desired ()
  (when (and (apply #'derived-mode-p hl-todo-activate-in-modes)
             (not (derived-mode-p 'org-mode)))
    (hl-todo-mode 1)))