8

org-batch-agenda:让你在命令行中输出org-agenda

 3 years ago
source link: https://www.lujun9972.win/blog/2018/10/26/org-batch-agenda-%E8%AE%A9%E4%BD%A0%E5%9C%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%AD%E8%BE%93%E5%87%BAorg-agenda/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

org-batch-agenda:让你在命令行中输出org-agenda

今天才知道 org-mode 居然还提供了一个 org-batch-agenda 命令可以让我们在命令行中输出org-agenda的内容, 这样我们可以很方便地将 org-agenda 中的内容吐出来给其他工具使用。

比如,我们可以做一个定时任务,每天一早把angeda view通过邮件发送给自己查看

/usr/bin/emacs --batch -l ~/.emacs -eval '(org-batch-agenda "a" org-agenda-span 14)' 2>/dev/null | mail -s "$USER 's Agenda for $(date +'\%A \%D')" [email protected]

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK