summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--notes.el
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2024-11-08 23:53:08 -0500
committerbd <bdunahu@operationnull.com>2024-11-08 23:53:08 -0500
commit26042331b4424ba3721d42970e7cafe741f96423 (patch)
treea60928d203902426fe8a6ce0d9b90be033f85389 /.config/emacs/modules/bd--notes.el
parentb693e1832b040a82b6e1adab7e7619636faa1c68 (diff)
Self-created scratch has proper local vars, Update RSS preferences
Diffstat (limited to '.config/emacs/modules/bd--notes.el')
-rw-r--r--.config/emacs/modules/bd--notes.el2
1 files changed, 2 insertions, 0 deletions
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