5

我正在尝试使用 org-mode 设置捕获/重新归档工作流程,但我无法让 ido 作为完成引擎工作。

我启用了 ido:

(require 'ido)
(setq ido-everywhere t)
(ido-mode t)

然后稍后在我的配置中,我尝试org-refile使用以下配置设置 ido 完成

(setq org-agenda-files
      '("~/org/captured.org"
        "~/org/work.org"
        "~/org/learning.org"
        "~/org/life.org"))
(setq org-refile-targets '((nil :maxlevel . 6)
                           (org-agenda-files :maxlevel . 6)))
(setq org-refile-use-outline-path 'file)
(setq org-completion-use-ido t)

我希望通过这些设置,当我尝试调用时,org-refile我会在 minibuffer 中看到一个 ido 完成界面,列出我可以重新归档到的文件和标题,其结构类似于目录树。

然而,我看到的只是一个空白,就像非 ido 完成界面一样。我可以用这个界面完成。例如,我可以输入wo[Tab]em[Tab]get work/email,但我更喜欢 ido。

我的配置方式有问题吗?

4

1 回答 1

3

经过一些进一步的探索和阅读 StackOverflow 之后,我意识到问题出在哪里。

我一直在试验这个变量,并在某个时候org-outline-path-complete-in-steps将它设置为。t确保将此变量设置为nil允许 ido 按我的预期工作。

感谢这个答案帮助我:https ://stackoverflow.com/a/26682891/173292

于 2016-01-20T23:39:52.577 回答