如何在組織模式中按優先順序定義議程行的自訂格式(「面孔」)?

如何在組織模式中按優先順序定義議程行的自訂格式(「面孔」)?

我正在使用 org-mode 7.8.11 和 Emacs 24.1.1,並且我想更改用於顯示議程行的顏色,以便所有具有優先級“A”的行都以紅色粗體字體顯示。

我嘗試更改變數 org-priority-faces 但它有沒有效果:

 org-priority-faces is a variable defined in `org-faces.el'.
 Its value is (("A" :foreground "#E01B4C" :weight bold)
 ("B" :foreground "#1739BF")
 ("#C" :foreground "#575757"))

我究竟做錯了什麼?其他配置可以覆蓋這個新設定嗎?

答案1

我自訂了變量org-priority-faces,它在我的 .emacs 中創建了以下行

(custom-set-variables
;; here there is customization for other variables 
    '(org-priority-faces (quote ((65 . "DeepPink") (66 . "firebrick") (67 . "tomato"))))
)

65、66 和 67 是 ASCII 代碼甲、乙C優先事項。

Emacs 在議程中正確顯示顏色,但僅[#A],[#B],...字串,而不是整行。

相關內容