Created
September 25, 2016 17:41
-
-
Save cddr/053bb3d4d6c901f6ab3911fad836b6c4 to your computer and use it in GitHub Desktop.
Brain Flush
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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