在组织中完成DONE任务的头条新闻

use*_*592 5 emacs elisp org-mode

我真的很想在Org-mode中完成我的DONE任务.以下来自http://lists.gnu.org/archive/html/emacs-orgmode/2007-03/msg00179.html的片段(通过Sacha Chua的博客):

(setq org-fontify-done-headline t)
(custom-set-faces
 '(org-done ((t (:foreground "PaleGreen"
                 :weight normal
                 :strike-through t))))
 '(org-headline-done
            ((((class color) (min-colors 16) (background dark))
               (:foreground "LightSalmon" :strike-through t)))))
Run Code Online (Sandbox Code Playgroud)

然而,这对我不起作用(颜色已更改,但没有透视).我这可能是由于我使用的曝光主题:https://github.com/sellout/emacs-color-theme-solarized

不幸的是我自己无法修复它...如果我看一下customize-faceorg-done Strike-through的值是"On",但没有视觉效果.

非常感谢你!

小智 0

如果您使用浅色背景,则需要修改代码片段,原作者可能使用深色主题。

关键行是:

((class color) (min-colors 16) (background dark))
Run Code Online (Sandbox Code Playgroud)

您可以替换(background dark)(background light),或者完全删除背景 s-exp 以在深色和浅色主题中工作。

((class color) (min-colors 16))
Run Code Online (Sandbox Code Playgroud)

在对其进行评估缓冲区之后,init.el它应该适用于您的浅色主题。我用日光灯做了一个快速测试,效果很好。