Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
/ buffer-protect Public archive

Protect Emacs buffers from being killed.

Notifications You must be signed in to change notification settings

glucas/buffer-protect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

buffer-protect

Protect Emacs buffers from being killed inadvertently.

This package provides a configurable list of buffer names that should never be killed.

ARCHIVED

I no longer use this package, replacing this workflow with the built-in emacs-lock package.

Usage

The *Messages* and *scratch* buffers are protected by default. Customize buffer-protect-buffers to change the list of protected buffer names.

The list of protected buffers can also be updated interactively:

  • Use buffer-protect-add-buffer to add the current buffer's name to the list.

  • Use buffer-protect-kill-buffer to force kill the current buffer and remove its name from the list.

Ibuffer integration

This package advises certain ibuffer commands to be aware of protected buffers: attempts to kill a protected buffer via ibuffer will be silently ignored.

You can safely mark for deletion a set of buffers that includes a protected buffer. Upon hitting x to kill the marked buffers, the mark will be cleared on any protected buffers and they will be preserved without causing an ibuffer error.

About

Protect Emacs buffers from being killed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published