diff options
Diffstat (limited to '.config/emacs/modules/bd--notes.el')
-rw-r--r-- | .config/emacs/modules/bd--notes.el | 2 |
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 |