Skip to content

Instantly share code, notes, and snippets.

@Neil-Smithline
Created July 17, 2012 01:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neil-Smithline/3126257 to your computer and use it in GitHub Desktop.
Save Neil-Smithline/3126257 to your computer and use it in GitHub Desktop.
IBuffer for Org Mode Files
;;; Create and display an `ibuffer' showing only `org-mode' files.
;;;
;;; I have bound this to "\C-cb" using:
;;; (global-set-key "\C-cb" #'org-ibuffer)
;;;
;;; Now "\C-x\C-b" creates a generic `ibuffer' and "\C-cb"
;;; creates an `org-mode' `ibuffer'.
(require 'ibuffer)
(defun org-ibuffer ()
"Open an `ibuffer' window showing only `org-mode' buffers."
(interactive)
(ibuffer nil "*Org Buffers*" '((used-mode . org-mode))))
;;; This work created by Neil Smithline is licensed under the Creative
;;; Commons Attribution-ShareAlike 3.0 Unported License.
;;;
;;; To view a copy of this license, visit
;;; http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to
;;; Creative Commons, 444 Castro Street, Suite 900, Mountain View,
;;; California, 94041, USA.
;;;
;;; Inquiries about further rights can be made at
;;; http://www.neilsmithline.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment