From 1c7485515312bab03e734df95c78ec39293d2c09 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 25 Jan 2021 16:52:38 -0600 Subject: Add scratch package --- config.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'config.org') diff --git a/config.org b/config.org index 101cd75..e72fb15 100644 --- a/config.org +++ b/config.org @@ -219,6 +219,23 @@ function to the =kill-buffer-query-functions= hook that will return (add-hook 'kill-buffer-query-functions #'immortal-scratch) #+end_src +*** An /even better/ scratch buffer :package: + +The aptly-named =scratch= pops open a new scratch buffer /with the same +mode as the file you're currently editing/. I'm pretty chuffed about +it. + +I found it from [[https://old.reddit.com/r/emacs/comments/l4v1ux/one_of_the_most_useful_small_lisp_functions_in_my/][this discussion]], which might also come in handy +someday. + +#+begin_src emacs-lisp :noweb-ref packages + (straight-use-package 'scratch) +#+end_src + +#+begin_src emacs-lisp :noweb-ref bindings + (define-key acdw/leader (kbd "C-x") #'scratch) +#+end_src + *** Kill buffers better #+begin_src emacs-lisp :noweb-ref functions -- cgit 1.4.1-21-gabe81