Killing buffers whose names start with a particular string

前端 未结 6 950
太阳男子
太阳男子 2020-12-31 05:41

Here\'s my problem: I use Emacs and get lots of buffers that are pretty useless all the time, like *Messages* or *Completions*.

I want to bind \\C-y to close all buf

6条回答
  •  隐瞒了意图╮
    2020-12-31 06:26

    C-h f kill-matching-buffers RET

    kill-matching-buffers is an interactive compiled Lisp function in `files.el'.

    (kill-matching-buffers REGEXP &optional INTERNAL-TOO)

    Kill buffers whose name matches the specified REGEXP. The optional second argument indicates whether to kill internal buffers too.

提交回复
热议问题