From ee5897a42c490bfd0c499a25ae90e6ec3a559764 Mon Sep 17 00:00:00 2001 From: Stephen Eglen Date: Sat, 5 Jun 1999 11:48:02 +0000 Subject: [PATCH] Add iswitchb-minibuffer-setup to minibuffer-setup-hook in iswitchb-default-keybindings. --- lisp/iswitchb.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index b683982f52f..f647c48f600 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el @@ -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 -- 2.39.2