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

时间:2013-01-07 10:24:32

标签: 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)))))

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

不幸的是我自己无法解决这个问题......如果我看一下org-done的customize-face,Strike-through的值为“On”,但没有视觉效果。

非常感谢!

1 个答案:

答案 0 :(得分:0)

如果您使用的是浅色背景,则需要修改代码段,原作者可能使用了黑暗主题。

关键是:

((class color) (min-colors 16) (background dark))

您可以将(background dark)替换为(background light),或者完全删除背景s-exp以适用于黑暗和浅色主题。

((class color) (min-colors 16))

init.el上的评估缓冲区后,它应该适用于您的灯光主题。我用曝光的灯进行了快速测试,它起作用了。

相关问题