在 emacs 组织模式下捕获失败
我正在使用 GNU Emacs 23.1.1 和 org-mode 版本 7.7 我想使用 Cc c
t 捕获任务并将其发送到 ~/todo.org
(如 org-capture-template
中定义)以下。按 Cc c
时,Org Select
缓冲区将打开,但当我按 t
时,我收到错误消息 Capture abort: (void -function nil)
并且没有任何内容写入 todo.org
。我的 .emacs
中的相关行如下所示。请帮我解决这个问题。
(define-key global-map "\C-cc" 'org-capture)
(setq org-directory "~/")
(setq org-capture-templates
(("t" "Todo" entry (file+headline "~/todo.org" "Tasks")
"* TODO %?\n %i\n %a")
("j" "Journal" entry (file+datetree "~/journal.org")
"* %?\nEntered on %U\n %i\n %a")))
I am using GNU Emacs 23.1.1 with org-mode version 7.7
I want to use C-c c
t to capture a task and send it to ~/todo.org
as defined in the org-capture-template
below. On pressing C-c c
, the Org Select
buffer opens but when I hit t
, I get the error message Capture abort: (void-function nil)
and nothing gets written to todo.org
. The relevant lines from my .emacs
are shown below. Please help me fix this.
(define-key global-map "\C-cc" 'org-capture)
(setq org-directory "~/")
(setq org-capture-templates
(("t" "Todo" entry (file+headline "~/todo.org" "Tasks")
"* TODO %?\n %i\n %a")
("j" "Journal" entry (file+datetree "~/journal.org")
"* %?\nEntered on %U\n %i\n %a")))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要引用您的捕获模板列表。如果您按如下方式更改相关部分,它应该可以工作。
请务必记住在末尾添加结束
)
,否则最终会出现不平衡的括号。You need to quote your list of capture templates. If you change the relevant section as follows it should work.
Make sure you remember to include the closing
)
at the end or you'll end up with unbalanced parentheses.