https://github.com/lujun9972/clean-buffers
https://github.com/lujun9972/clean-buffers
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lujun9972/clean-buffers
- Owner: lujun9972
- Created: 2015-12-22T12:48:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-29T22:59:49.000Z (about 10 years ago)
- Last Synced: 2025-09-08T06:48:04.177Z (10 months ago)
- Language: Emacs Lisp
- Size: 10.7 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+TITLE: README
#+AUTHOR: lujun9972
#+CATEGORY: clean-buffers
#+DATE: [2015-12-26 六 23:04]
#+OPTIONS: ^:{}
* NOTE
please use =M-x clean-buffer-list= instead, which is defined in =midnight.el=
* what is clean-buffers
clean-buffers is a little tool that used to clean useless buffers which means buffers match specify regex (see `clean-buffer-useless-buffer-names') or undisplayed time exceeded certain time (see `clean-buffer-useless-buffer-timeout')
* How to use
config `useless-buffer-names' or `useless-buffer-time-out' and then execute the following commands:
`clean-buffers-kill-useless-buffers' to clean useless buffers
or `clean-buffers-turn-on-auto-clean-buffers' to clean useless buffers automatically
* Customization
+ clean-buffers-kill-active-buffer
If no-nil, will clean active buffer. Default to nil.
+ clean-buffers-kill-proces-holding-buffer
If non-nil, will clean process-holding buffer. Default to nil
+ clean-buffers-judge-useless-buffer-functions
function list which used to determine a buffer is useless or not
the function will take a buffer as the only argument and should return non-nil when the buffer is a useless buffer.
+ clean-buffers-useless-buffer-time-out
buffers who's undisplayed time exceeded this value will be considered useless
+ clean-buffers-useless-buffer-names
buffers who's name match one regex in this value will be considered useless.
+ clean-buffers-useful-buffer-names
buffers who's name match one regex in this value will not considered useless.