emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-ido-switchb
@ 2008-12-18 21:04 Chris Leyon
  2008-12-18 22:09 ` org-ido-switchb Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Leyon @ 2008-12-18 21:04 UTC (permalink / raw)
  To: emacs org-mode mailing list

[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-19  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-18 21:04 org-ido-switchb Chris Leyon
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

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).