简体   繁体   English

Emacs Org-Mode TODO列表中缺少的物品

[英]Emacs Org-Mode TODO List Missing Items

I've recently begun to learn org-mode and have been following a couple of online tutorials such as this: http://www.linuxjournal.com/article/9116?page=0,2 我最近开始学习org-mode,并且一直在关注一些在线教程,例如: http : //www.linuxjournal.com/article/9116?page=0,2

I've encountered a problem where the TODO items that are listed in my main test.org document are not showing up in the list view: Mx org-todo-list 我遇到了一个问题,我的主要test.org文档中列出的TODO项目没有显示在列表视图中: Mx org-todo-list

For example, test.org: 例如,test.org:

* Example
** TODO We have an issue
*** TODO What is the problem

Mx org-todo-list displays: Mx org-todo-list显示:

Global list of TODO items of type: ALL
Available with `N r': (0)[ALL]

Why are my TODO items missing from the global list? 为什么我的待办事项从全局列表中丢失? Has anyone else encountered this problem? 还有其他人遇到过这个问题吗? I'm currently running: 我目前正在跑步:

GNU Emacs 24.3.1 (x86_64-apple-darwin10.8.0)
Org-mode version 8.0.6 (Elpa install)    
MacOS 10.6.8 x86 64-bit   

Org-mode portion of .init.el file: .init.el文件的组织模式部分:

; Org-mode
(require 'org-install)
(package-initialize)
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

; Enable S-TAB MacOS
(add-hook 'term-setup-hook
    (lambda () (define-key input-decode-map "\e[Z" [backtab])))

Note the adding either of the following commands does not solve the problem: 请注意添加以下两个命令之一不能解决问题:

(setq org-agenda-include-all-todo t)
(global-set-key "\C-ct" 'org-todo-list)

You need to set org-agenda-files , which you can do easily with Mx customize-variable RET org-agenda-files . 您需要设置org-agenda-files ,您可以使用Mx customize-variable RET org-agenda-files轻松地进行设置。 Then just add the full path to your test.org file. 然后只需将完整路径添加到您的test.org文件。 You can add more files by selecting INS in this buffer. 您可以通过在此缓冲区中选择INS来添加更多文件。

You forgot to set the org-agenda-files . 您忘记设置org-agenda-files

(defvar dir-where-you-store-org-files "~/rog/")
(setq 
 org-agenda-files 
 (mapcar (lambda (x) (concat dir-where-you-store-org-files x))
         '("file1.org" "file2.org" "file3.org")))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM