[英]Emacs org-agenda Export agenda -how to?
I'am new with Emacs and certainly with lisp.我是 Emacs 的新手,当然还有 lisp。 I know that we can save an agenda (view?) with Cx Cw
.我知道我们可以使用Cx Cw
保存议程(视图?)。 Fine but can we do that with the (setq org-agenda-custom-commands)?很好,但是我们可以使用 (setq org-agenda-custom-commands) 来做到这一点吗? I would like to save the weekly agenda to a .txt
file (like agenda.txt
).我想将每周议程保存到.txt
文件(如agenda.txt
)。
Accounding the documentation of org-agenda-custom-commands
(partly paste here):根据org-agenda-custom-commands
的文档(部分粘贴在这里):
Custom commands for the agenda. Each entry is a list like this:
(key desc type match settings files)
or
(key desc (cmd1 cmd2 ...) general-settings-for-whole-set files)
files A list of files to write the produced agenda buffer to with
the command org-store-agenda-views.
If a file name ends in ".html", an HTML version of the buffer
is written out. If it ends in ".ps", a postscript version is
produced. Otherwise, only the plain text is written to the file.
You can set org-agenda-custom-commands
like:您可以像这样设置org-agenda-custom-commands
:
(setq org-agenda-custom-commands
'(("n" "Agenda and all TODOs"
((agenda "")
(alltodo ""))
nil
("~/agenda.txt"))))
and then Mx org-agenda
n
Mx org-store-agenda-views
to save the agenda view to ~/agenda.txt
.然后Mx org-agenda
n
Mx org-store-agenda-views
将议程视图保存到~/agenda.txt
。
or you can write a function to do this.或者你可以写一个 function 来做到这一点。
(defun save-agenda-view (&optional arg)
(interactive "P")
(org-agenda arg "n")
(org-store-agenda-views))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.