Created
November 3, 2016 01:54
-
-
Save autosquid/74c377d3910a35d2944913a08ab99067 to your computer and use it in GitHub Desktop.
Kill least used buffers.
This file contains hidden or 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
| (defun kill-buffers-after (idx limit list) | |
| (when list | |
| (when (> idx limit) (kill-buffer (car list))) | |
| (kill-buffers-after (+ idx 1) limit (cdr list)))) | |
| (kill-buffers-after 0 20 (buffer-list)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment