diff options
author | noa@gaiwan.org | 2024-06-15 00:40:42 +0000 |
---|---|---|
committer | noa@gaiwan.org | 2024-06-15 00:40:42 +0000 |
commit | b8c2ca53cb586fb91b0a7b6fd749b7180a82cd4a (patch) | |
tree | 0a25005fa3c0001767a971f03203a6ae1478b748 /emacs/init.el | |
parent | 0f10bdbcb844bbacf6a2f134838f030f31944018 (diff) |
Put a quote in the scratch buffer
Diffstat (limited to 'emacs/init.el')
-rw-r--r-- | emacs/init.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el index dcd15d5..02e2118 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -870,3 +870,16 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (use-package anzu :ensure t) (global-set-key [remap query-replace] 'anzu-query-replace) (global-set-key [remap query-replace-regexp] 'anzu-query-replace-regexp) + +;; Put a quote in the scratch buffer + +(setopt cookie-file "~/data/quotes") + +(setopt initial-scratch-message + (concat (with-temp-buffer + (emacs-lisp-mode) + (insert (cookie cookie-file)) + (mark-whole-buffer) + (comment-region (mark) (point)) + (buffer-substring (mark) (point))) + "\n\n")) |