[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Find all commands bound to key prefix
From: |
Drew Adams |
Subject: |
RE: Find all commands bound to key prefix |
Date: |
Sat, 3 May 2008 18:53:58 -0700 |
> > Some users, such as myself, explicitly bind C-h in
> > isearch-mode-map so that C-s C-h does show the C-s
> > bindings.
>
> And how do you do that? And what command do you bind it to?
http://www.emacswiki.org/cgi-bin/wiki/IsearchPlus - description
http://www.emacswiki.org/cgi-bin/wiki/isearch%2b.el - code
This is the relevant part:
(add-hook 'isearch-mode-hook
(lambda ()
(define-key isearch-mode-map "\C-h" 'isearch-mode-help)))
(defun isearch-mode-help ()
"Display information on interactive search in buffer *Help*."
(interactive)
(describe-function 'isearch-forward)
(isearch-done)
(isearch-clean-overlays)
(save-excursion
(set-buffer "*Help*")
(goto-char (point-max))
(let ((buffer-read-only nil))
(insert (substitute-command-keys "
Bindings in Isearch minor mode:
------------------------------
\\{isearch-mode-map}")))))