浏览代码

Disable in org and magit since they already support ido

Fixes #37.
Ryan C. Thompson 12 年之前
父节点
当前提交
0e966a2ae9
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      ido-ubiquitous.el

+ 11 - 2
ido-ubiquitous.el

@@ -273,7 +273,11 @@ specific commands or functions, set appropriate overrides in
     ;; https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/4
     ;; https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/4
     (enable exact "webjump")
     (enable exact "webjump")
     ;; https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/28
     ;; https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/28
-    (enable regexp "\\`\\(find\\|load\\|locate\\)-library\\'"))
+    (enable regexp "\\`\\(find\\|load\\|locate\\)-library\\'")
+    ;; https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/37
+    ;; Org and Magit already support ido natively
+    (disable prefix "org-")
+    (disable prefix "magit-"))
   "Default value of `ido-ubiquitous-command-overrides'.
   "Default value of `ido-ubiquitous-command-overrides'.
 
 
 You can restore these using the command `ido-ubiquitous-restore-default-overrides'.")
 You can restore these using the command `ido-ubiquitous-restore-default-overrides'.")
@@ -291,7 +295,12 @@ You can restore these using the command `ido-ubiquitous-restore-default-override
     (enable-old exact "webjump-read-choice")
     (enable-old exact "webjump-read-choice")
     (enable-old exact "webjump-read-url-choice")
     (enable-old exact "webjump-read-url-choice")
     ;; https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/9
     ;; https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/9
-    (disable exact "isearchp-read-unicode-char"))
+    (disable exact "isearchp-read-unicode-char")
+    ;; https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/37
+    (disable exact "org-completing-read")
+    (disable exact "org-completing-read-no-i")
+    (disable exact "org-iswitchb-completing-read")
+    (disable exact "org-icompleting-read"))
   "Default value of `ido-ubiquitous-function-overrides'.
   "Default value of `ido-ubiquitous-function-overrides'.
 
 
 You can restore these using the command `ido-ubiquitous-restore-default-overrides'.")
 You can restore these using the command `ido-ubiquitous-restore-default-overrides'.")