From 331d8b8a1378c599992ccabd756f6e49f39dca35 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Tue, 21 Jul 2020 20:25:39 -0400 Subject: [PATCH] Fix broken scratch buffer keybind --- init.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 764f779..6ed7066 100644 --- a/init.el +++ b/init.el @@ -267,8 +267,8 @@ (when (yes-or-no-p "The contents of this buffer have been modified. Really revert? ") (revert-buffer :ignore-auto :noconfirm)))) -(defun switch-to-scratch-buffer () - "Switch to the scratch buffer, (re)creating it if not present." +(defun open-scratch-buffer () + "Open the scratch buffer, (re)creating it if not present." (interactive) (if (get-buffer "*scratch*") (switch-to-buffer "*scratch*") @@ -288,6 +288,7 @@ ("C-z" . undo) ("C-c o" . switch-to-minibuffer-window) ("C-c r" . revert-buffer-no-confirm) + ("C-c s" . open-scratch-buffer) ("C-c RET" . open-default-shell) ("C-x C-b" . ibuffer) ("M-n" . scroll-up-line)