aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-14 14:15:17 -0500
committerSean Allred <code@seanallred.com>2014-11-14 14:15:17 -0500
commitfd3f074b21738e3305c620325323f7f952318e53 (patch)
treeeb0d29c7ba8d9e3b7d2d43102f80d9eed7de14b9
parenteaba0d1595836812d38081fd049185d795dd57bb (diff)
Use Ido when it is enabled
-rw-r--r--sx-question-list.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-question-list.el b/sx-question-list.el
index 2f877cc..9c03405 100644
--- a/sx-question-list.el
+++ b/sx-question-list.el
@@ -302,7 +302,7 @@ focus the relevant window."
(defun sx-question-list-switch-site (site)
"Switch the current site to SITE and display its questions"
(interactive
- (list (completing-read
+ (list (funcall (if ido-mode #'ido-completing-read #'completing-read)
"Switch to site: " (sx-site-get-api-tokens)
(lambda (site)
(not (equal site sx-question-list--current-site)))