简体   繁体   English

使用ido进行org-refile,不使用ido作为完成引擎

[英]Org-refile with ido, not using ido as the completion engine

I'm trying to setup a capture/refile workflow using org-mode, and I'm having trouble getting ido working as the completion engine. 我正在尝试使用org-mode设置捕获/重新生成工作流程,而我无法让ido作为完成引擎工作。

I have ido enabled: 我启用了ido:

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

And then later in my configuration I try to setup ido completion with org-refile using the following configuration 然后在我的配置中,我尝试使用以下配置使用org-refile 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)

I would expect that with these settings, when I try to call org-refile I would be presented with an ido completion interface in the minibuffer, listing the files and headings that I can refile to, structured like a directory tree. 我希望通过这些设置,当我尝试调用org-refile我会在迷你缓冲区中看到一个ido完成界面,列出我可以重新编写的文件和标题,结构类似于目录树。

What I see, however, is just a blank space, like the non-ido completion interface. 然而,我看到的只是一个空白区域,就像非ido完成界面一样。 I am able to do completion with this interface. 我可以用这个界面完成。 For example I can type wo[Tab]em[Tab] to get work/email , but I would much prefer ido. 例如,我可以输入wo[Tab]em[Tab]来获取work/email ,但我更喜欢ido。

Is there something wrong with how I've configured this? 我如何配置这个有什么问题吗?

After some further poking, and reading on StackOverflow, I realized what the problem was. 经过一些进一步的探讨,并在StackOverflow上阅读,我意识到问题所在。

I had been experimenting with the variable org-outline-path-complete-in-steps and I had set it to t at some point. 我一直在尝试变量org-outline-path-complete-in-steps ,我在某个时候将它设置为t Making sure that this variable was set to nil allowed ido to work as I expected. 确保将此变量设置为nil允许ido按预期工作。

Thanks to this answer for helping me out: https://stackoverflow.com/a/26682891/173292 感谢这个帮助我的答案: https//stackoverflow.com/a/26682891/173292

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

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