* ido buffer select - restrict buffer types
@ 2010-09-01 21:12 Richard Riley
2010-09-01 22:24 ` Richard Riley
0 siblings, 1 reply; 2+ messages in thread
From: Richard Riley @ 2010-09-01 21:12 UTC (permalink / raw)
To: help-gnu-emacs
Can someone please show me how I might use IDO buffer select to restrict
from a subset of buffers?
e.g ido select between erc buffers for example.
The benefit over the existing iswitchb mode being the fuzzy (flex)
select capabilities for us sloppy typists.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ido buffer select - restrict buffer types
2010-09-01 21:12 ido buffer select - restrict buffer types Richard Riley
@ 2010-09-01 22:24 ` Richard Riley
0 siblings, 0 replies; 2+ messages in thread
From: Richard Riley @ 2010-09-01 22:24 UTC (permalink / raw)
To: help-gnu-emacs
Richard Riley <rileyrg@gmail.com> writes:
> Can someone please show me how I might use IDO buffer select to restrict
> from a subset of buffers?
>
> e.g ido select between erc buffers for example.
>
> The benefit over the existing iswitchb mode being the fuzzy (flex)
> select capabilities for us sloppy typists.
>
Digging around in (erc-buffer-list) I now have this working solution
with erc flex matching.
--8<---------------cut here---------------start------------->8---
(defun rgr/ido-erc-buffer()
(interactive)
(switch-to-buffer
(ido-completing-read "Channel:"
(save-excursion
(delq
nil
(mapcar (lambda (buf)
(when (buffer-live-p buf)
(with-current-buffer buf
(and (eq major-mode 'erc-mode)
(buffer-name buf)))))
(buffer-list)))))))
(global-set-key (kbd "C-c e") 'rgr/ido-erc-buffer)
--8<---------------cut here---------------end--------------->8---
--
☘ http://www.shamrockirishbar.com, http://www.richardriley.net
"Learning French is trivial: the word for horse is 'cheval' and
everything follows thusly." : quotemaster, #emacs on irc.freenode.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-01 22:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-01 21:12 ido buffer select - restrict buffer types Richard Riley
2010-09-01 22:24 ` Richard Riley
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.