summary refs log tree commit diff stats
path: root/config.org
diff options
context:
space:
mode:
authorCase Duckworth2021-01-25 16:52:38 -0600
committerCase Duckworth2021-01-25 16:52:38 -0600
commit1c7485515312bab03e734df95c78ec39293d2c09 (patch)
tree0505e3ecaaa4e2d12314173bc9f21094539821a8 /config.org
parentAdd crosswords (diff)
downloademacs-1c7485515312bab03e734df95c78ec39293d2c09.tar.gz
emacs-1c7485515312bab03e734df95c78ec39293d2c09.zip
Add scratch package
Diffstat (limited to 'config.org')
-rw-r--r--config.org17
1 files changed, 17 insertions, 0 deletions
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
219 (add-hook 'kill-buffer-query-functions #'immortal-scratch) 219 (add-hook 'kill-buffer-query-functions #'immortal-scratch)
220#+end_src 220#+end_src
221 221
222*** An /even better/ scratch buffer :package:
223
224The aptly-named =scratch= pops open a new scratch buffer /with the same
225mode as the file you're currently editing/. I'm pretty chuffed about
226it.
227
228I 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
229someday.
230
231#+begin_src emacs-lisp :noweb-ref packages
232 (straight-use-package 'scratch)
233#+end_src
234
235#+begin_src emacs-lisp :noweb-ref bindings
236 (define-key acdw/leader (kbd "C-x") #'scratch)
237#+end_src
238
222*** Kill buffers better 239*** Kill buffers better
223 240
224#+begin_src emacs-lisp :noweb-ref functions 241#+begin_src emacs-lisp :noweb-ref functions