Skip to content

Instantly share code, notes, and snippets.

@cddr
Created September 25, 2016 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cddr/053bb3d4d6c901f6ab3911fad836b6c4 to your computer and use it in GitHub Desktop.
Save cddr/053bb3d4d6c901f6ab3911fad836b6c4 to your computer and use it in GitHub Desktop.
Brain Flush
(define-ibuffer-filter buffer-modified-p
"Toggle current view to buffers that have been modified"
(:description "unsaved file buffers")
(and (buffer-local-value 'buffer-file-name buf)
(buffer-modified-p buf)))
(defun brain-flush ()
(interactive)
(ibuffer t "*Brain Flush*"
'((buffer-modified-p . true))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment