From 26042331b4424ba3721d42970e7cafe741f96423 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 8 Nov 2024 23:53:08 -0500 Subject: Self-created scratch has proper local vars, Update RSS preferences --- .config/emacs/modules/bd--notes.el | 2 ++ 1 file changed, 2 insertions(+) (limited to '.config/emacs/modules/bd--notes.el') diff --git a/.config/emacs/modules/bd--notes.el b/.config/emacs/modules/bd--notes.el index f4f9677..80d0a8c 100644 --- a/.config/emacs/modules/bd--notes.el +++ b/.config/emacs/modules/bd--notes.el @@ -24,10 +24,12 @@ then pastes the active region." (insert (format "\n\n%s" contents))) (current-buffer))))) (keymap-global-set "C-c s" #'bd/send-to-scratch) +;; default *scratch* must have var set (add-hook 'emacs-startup-hook (lambda () (with-current-buffer "*scratch*" (setq-local scratch-buffer t)))) +(advice-add 'scratch-buffer :after (lambda () (setq-local scratch-buffer t))) (use-package denote :hook -- cgit v1.2.3