Emacs: Replace killed buffers with same purpose.

This commit is contained in:
tastytea 2020-01-25 00:31:22 +01:00
parent 6ee4d6fa25
commit df4d30be8d

View File

@ -1,6 +1,6 @@
;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*- ;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-01-24T23:25:31+0100> ;; Time-stamp: <2020-01-25T00:27:35+0100>
;;; Commentary: ;;; Commentary:
;; * Setup scratch buffer. ;; * Setup scratch buffer.
@ -87,9 +87,9 @@
'(help-buffers '(help-buffers
purpose-display-reuse-window-buffer)) purpose-display-reuse-window-buffer))
;; All Magit buffers have the same purpose.
(require 'window-purpose-x) (require 'window-purpose-x)
(purpose-x-magit-single-on) (purpose-x-magit-single-on) ; All Magit buffers have the same purpose.
(purpose-x-kill-setup) ; Replace killed buffers with same purpose.
:bind :bind
("<f2>" . purpose-toggle-window-purpose-dedicated) ("<f2>" . purpose-toggle-window-purpose-dedicated)