From: "Chris Leyon" <cleyon@gmail.com>
To: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: org-ido-switchb
Date: Thu, 18 Dec 2008 16:04:55 -0500 [thread overview]
Message-ID: <5ea706d0812181304p5ccdeebbp4e3a5ebb2092530@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 96 bytes --]
I recently switched from iswitchb to ido, but I missed org-iswitchb.
So I wrote an ido version.
[-- Attachment #2: org-ido-switchb.el --]
[-- Type: application/octet-stream, Size: 619 bytes --]
(defun org-ido-switchb (&optional arg)
"Use `org-ido-completing-read' to prompt for an Org buffer to switch to.
With a prefix argument, restrict available to files.
With two prefix arguments, restrict available buffers to agenda files."
(interactive "P")
(let ((blist (cond ((equal arg '(4)) (org-buffer-list 'files))
((equal arg '(16)) (org-buffer-list 'agenda))
(t (org-buffer-list)))))
(switch-to-buffer
(org-ido-completing-read "Org buffer: "
(mapcar 'buffer-name blist)
nil t))))
[-- Attachment #3: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2008-12-18 21:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-18 21:04 Chris Leyon [this message]
2008-12-18 22:09 ` org-ido-switchb Carsten Dominik
2008-12-19 3:27 ` org-ido-switchb Chris Leyon
2008-12-19 8:39 ` org-ido-switchb Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5ea706d0812181304p5ccdeebbp4e3a5ebb2092530@mail.gmail.com \
--to=cleyon@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).