182 |
|
|
183 |
;; Using iswitchb for other completion tasks. |
;; Using iswitchb for other completion tasks. |
184 |
|
|
185 |
;; Kin Cho (kin@neoscale.com sent the following suggestion to use |
;; Kin Cho (kin@neoscale.com) sent the following suggestion to use |
186 |
;; iswitchb for other completion tasks. |
;; iswitchb for other completion tasks. |
187 |
;; |
;; |
188 |
;; (defun my-icompleting-read (prompt choices) |
;; (defun my-icompleting-read (prompt choices) |
198 |
;; (my-icompleting-read "Which fruit? " ' |
;; (my-icompleting-read "Which fruit? " ' |
199 |
;; ("apple" "pineapple" "pear" "bananas" "oranges") ) |
;; ("apple" "pineapple" "pear" "bananas" "oranges") ) |
200 |
|
|
201 |
|
;; Kin Cho also suggested the following defun. Once you have a subset of |
202 |
|
;; matching buffers matching your current prompt, you can then press |
203 |
|
;; e.g. C-o to restrict matching to those buffers and clearing the prompt: |
204 |
|
;; (defun iswitchb-exclude-nonmatching() |
205 |
|
;; "Make iswitchb work on only the currently matching names." |
206 |
|
;; (interactive) |
207 |
|
;; (setq iswitchb-buflist iswitchb-matches) |
208 |
|
;; (setq iswitchb-rescan t) |
209 |
|
;; (delete-minibuffer-contents)) |
210 |
|
;; |
211 |
|
;; (add-hook 'iswitchb-define-mode-map-hook |
212 |
|
;; '(lambda () (define-key |
213 |
|
;; iswitchb-mode-map "\C-o" |
214 |
|
;; 'iswitchb-exclude-nonmatching))) |
215 |
|
|
216 |
;; Other lisp packages extend iswitchb behaviour to other tasks. See |
;; Other lisp packages extend iswitchb behaviour to other tasks. See |
217 |
;; ido.el (by Kim Storm) and mcomplete.el (Yuji Minejima). |
;; ido.el (by Kim Storm) and mcomplete.el (Yuji Minejima). |
218 |
|
|