aboutsummaryrefslogtreecommitdiff
path: root/sx-switchto.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-04-20 21:04:52 +0100
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-04-20 21:04:52 +0100
commit50a064f5e1ec85765ab0670cd2a04d2499f6cf65 (patch)
treebaec3d1a038efae16a4bb1373630bb007db27a32 /sx-switchto.el
parent4e053fceed58d72c5670556ec0537610d52d6fa7 (diff)
Require switchto.el where appropriate. Fix #280
Diffstat (limited to 'sx-switchto.el')
-rw-r--r--sx-switchto.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/sx-switchto.el b/sx-switchto.el
index 6a195e0..718a941 100644
--- a/sx-switchto.el
+++ b/sx-switchto.el
@@ -22,9 +22,6 @@
;;; Code:
(require 'sx)
-(require 'sx-filter)
-(require 'sx-method)
-(require 'sx-question-list)
;;; Keybinds
@@ -54,6 +51,7 @@
;;; These are keys which depend on context.
;;;; For instance, it makes no sense to have `switch-site' bound to a
;;;; key on a buffer with no `sx-question-list--site' variable.
+(defvar sx-question-list--site)
(sx--define-conditional-key sx-switchto-map "s" #'sx-question-list-switch-site
(and (boundp 'sx-question-list--site) sx-question-list--site))