]> code.delx.au - gnu-emacs-elpa/commitdiff
hydra.el (hydra--input-method-function): Move before first use
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 18 Apr 2015 17:12:02 +0000 (19:12 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 18 Apr 2015 17:12:02 +0000 (19:12 +0200)
hydra.el

index 7fc9d7e4d6519695205d7a1fcc4a7e5b26001d6b..89254b653e99eb08b987e3af7f5b88bb98c7791e 100644 (file)
--- a/hydra.el
+++ b/hydra.el
@@ -123,6 +123,9 @@ warn: keep KEYMAP and issue a warning instead of running the command."
 (defvar hydra--ignore nil
   "When non-nil, don't call `hydra-curr-on-exit'")
 
+(defvar hydra--input-method-function nil
+  "Store overridden `input-method-function' here.")
+
 (defun hydra-disable ()
   "Disable the current Hydra."
   (remove-hook 'pre-command-hook 'hydra--clearfun)
@@ -358,9 +361,6 @@ Return DEFAULT if PROP is not in H."
        ((blue teal) t)
        (t nil)))))
 
-(defvar hydra--input-method-function nil
-  "Store overridden `input-method-function' here.")
-
 (defun hydra-default-pre ()
   "Default setup that happens in each head before :pre."
   (when (eq input-method-function 'key-chord-input-method)