From 364c4ce73569c62d480a5715a2a3d8cd38b2bf80 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 14 Aug 2023 01:00:29 +0200 Subject: emacs: Use the ‘beframe’ package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/config.org | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index c8f2f24..ea9baeb 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -936,6 +936,26 @@ to figure out where my point is at all times. #+END_SRC +*** Frame Management + +Prot has made a fantastic package known as ~beframe~. It allows you to have +each frame have its own buffer list. This is insanely useful for keeping my +buffers nice and organized. It’s also useful for having a way to (for example) +kill all buffers you were using in a frame before closing it. + +#+BEGIN_SRC elisp + + (use-package beframe + :init + (beframe-mode)) + + (defun mm-beframe-kill-frame () + (interactive) + (mapc #'kill-buffer (beframe-buffer-list)) + (save-buffers-kill-terminal)) + +#+END_SRC + ** Extra Modes Some modes aren’t installed by default with Emacs, so let’s fetch them -- cgit v1.2.3