]> git.eshelyaron.com Git - emacs.git/commitdiff
Add iswitchb-minibuffer-setup to minibuffer-setup-hook in
authorStephen Eglen <stephen@gnu.org>
Sat, 5 Jun 1999 11:48:02 +0000 (11:48 +0000)
committerStephen Eglen <stephen@gnu.org>
Sat, 5 Jun 1999 11:48:02 +0000 (11:48 +0000)
iswitchb-default-keybindings.

lisp/iswitchb.el

index b683982f52fc399d9e155cd88b95b101b3d4c60a..f647c48f600b71f7ca6b860d0a8f1c05e953d263 100644 (file)
@@ -966,8 +966,10 @@ If BUFFER is visible in the current frame, return nil."
 ;;;###autoload
 (defun iswitchb-default-keybindings ()
   "Set up default keybindings for `iswitchb-buffer'.
-Call this function to override the normal bindings."
+Call this function to override the normal bindings.  This function also
+adds a hook to the minibuffer."
   (interactive)
+  (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
   (global-set-key (read-kbd-macro "C-x b")  'iswitchb-buffer)
   (global-set-key (read-kbd-macro "C-x 4 b")  'iswitchb-buffer-other-window)
   (global-set-key (read-kbd-macro "C-x 4 C-o")  'iswitchb-display-buffer)
@@ -1244,9 +1246,6 @@ This is an example function which can be hooked on to
                              iswitchb-temp-buflist))))
     (iswitchb-to-end summaries)))
 
-;;; HOOKS
-(add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
-
 (provide 'iswitchb)
 
 ;;; iswitchb.el ends here