组织模式:使用 -batch 和 -eval 输出每周议程
Org-mode: Output Weekly agenda using -batch and -eval
我试图在我的桌面背景上显示我的组织议程,即使 Emacs 已关闭或最小化。我使用这个命令取得了一些进展:
emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' 2> /dev/null
它输出:
Global list of TODO items of type: ALL
Available with `N r': (0)[ALL]
remind: TODO Garbage
remind: TODO Garbage and Recycling
remind: TODO Refill Prescription
remind: TODO Vitamins
remind: TODO Water Indoor Plants
remind: TODO Wake up!
remind: TODO Go to Sleep!
我的 .emacs 包含以下相关行:
;; org-agenda
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cb" 'org-iswitchb)
(setq org-agenda-files (list "~/Code/remind.org"
"~/Code/todo.org"
))
;; show org-agenda each time Emacs is opened
(add-hook 'after-init-hook 'org-agenda-list)
我的问题是这样的。如何自定义此输出以不显示以下内容?
Global list of TODO items of type: ALL
Available with `N r': (0)[ALL]
在调用 org-batch-agenda
时使用不同的命令键参数,例如:
(组织批次议程"a")
org-batch-agenda
的文档字符串说:
If CMD-KEY is a string of length 1, it is used as a key in
‘org-agenda-custom-commands’ and triggers this command.
如果您不喜欢现有的任何一个,您可以随时定义自己的议程自定义命令并为其附加一个密钥;然后你可以用那个键调用org-batch-agenda
。
我试图在我的桌面背景上显示我的组织议程,即使 Emacs 已关闭或最小化。我使用这个命令取得了一些进展:
emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' 2> /dev/null
它输出:
Global list of TODO items of type: ALL
Available with `N r': (0)[ALL]
remind: TODO Garbage
remind: TODO Garbage and Recycling
remind: TODO Refill Prescription
remind: TODO Vitamins
remind: TODO Water Indoor Plants
remind: TODO Wake up!
remind: TODO Go to Sleep!
我的 .emacs 包含以下相关行:
;; org-agenda
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cb" 'org-iswitchb)
(setq org-agenda-files (list "~/Code/remind.org"
"~/Code/todo.org"
))
;; show org-agenda each time Emacs is opened
(add-hook 'after-init-hook 'org-agenda-list)
我的问题是这样的。如何自定义此输出以不显示以下内容?
Global list of TODO items of type: ALL
Available with `N r': (0)[ALL]
在调用 org-batch-agenda
时使用不同的命令键参数,例如:
(组织批次议程"a")
org-batch-agenda
的文档字符串说:
If CMD-KEY is a string of length 1, it is used as a key in ‘org-agenda-custom-commands’ and triggers this command.
如果您不喜欢现有的任何一个,您可以随时定义自己的议程自定义命令并为其附加一个密钥;然后你可以用那个键调用org-batch-agenda
。