Emacs: Add keybindings for purpose/buffer dedication.

This commit is contained in:
tastytea 2020-01-24 23:25:54 +01:00
parent 6f90c07076
commit 6ee4d6fa25

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-21T02:51:01+0100> ;; Time-stamp: <2020-01-24T23:25:31+0100>
;;; Commentary: ;;; Commentary:
;; * Setup scratch buffer. ;; * Setup scratch buffer.
@ -75,6 +75,7 @@
(use-package window-purpose (use-package window-purpose
:pin melpa ; We need > 1.7 <https://github.com/bmag/emacs-purpose/issues/158> :pin melpa ; We need > 1.7 <https://github.com/bmag/emacs-purpose/issues/158>
:defer nil
:config :config
(purpose-mode) (purpose-mode)
@ -89,6 +90,10 @@
;; All Magit buffers have the same purpose. ;; 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)
:bind
("<f2>" . purpose-toggle-window-purpose-dedicated)
("C-<f2>" . purpose-toggle-window-buffer-dedicated)
) )
(provide 'basics/buffers) (provide 'basics/buffers)