From: Stephen Eglen Date: Sat, 5 Jun 1999 11:48:02 +0000 (+0000) Subject: Add iswitchb-minibuffer-setup to minibuffer-setup-hook in X-Git-Tag: emacs-20.4~129 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee5897a42c490bfd0c499a25ae90e6ec3a559764;p=emacs.git Add iswitchb-minibuffer-setup to minibuffer-setup-hook in iswitchb-default-keybindings. --- 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