gpt4 book ai didi

emacs - 如何在 orgmode 的月底设置 TODO 截止日期?

转载 作者:行者123 更新时间:2023-12-01 03:35:53 25 4
gpt4 key购买 nike

如何为该月的最后一个工作日设置 TODO 的截止日期?

最佳答案

我很确定这个功能会做到这一点。

(defun last-working-day-deadline ()
(interactive)
(let* ((date (calendar-current-date))
(day (calendar-extract-day date))
(month (calendar-extract-month date))
(year (calendar-extract-year date))
(lastday (calendar-last-day-of-month month year)))
;; workdays have "names" of 1 2 3 4 or 5
(while (not (memq (calendar-day-of-week (list month lastday year)) '(1 2 3 4 5)))
(decf lastday))
(org-deadline nil (format "%s-%s-%s" year month lastday))))

关于emacs - 如何在 orgmode 的月底设置 TODO 截止日期?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34955133/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com