EMACS-DOCUMENT

=============>集思广益

如何更改org-mode中TODO关键字的颜色

  1. 你可以通过设置 org-todo-keywords 来自定义TODO关键字

    (setq org-todo-keywords
          '((sequence "TODO" "IN-PROGRESS" "WAITING" "|" "DONE" "CANCELED"))
          )
    
  1. 你可以通过设置 org-todo-keyword-faces 来自定义各个TODO关键字的显示

    (setq org-todo-keyword-faces
          '(("IN-PROGRESS" . "orange") ("WAITING" . "magenta") ("CANCELED" . "red") ("DONE" . "green"))
          )
    ;; 或者这样
    (setq org-todo-keyword-faces (quote (("IN-PROGRESS" :foreground "orange"))))
    

    关于 org-todo-keyword-faces 的设置方式,请参见它的doc-string.