From 65e1a688c88d4db8ae89bde0774062878616b4bf Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Tue, 5 Jul 2022 09:18:37 -0500 Subject: [modify] bepasty section; [add] read-file-into-string function --- init-el.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init-el.org b/init-el.org index 4027313..5c39975 100644 --- a/init-el.org +++ b/init-el.org @@ -714,7 +714,14 @@ So, to use this file for the very first time you must #+name: cicadas-bepasty #+begin_src elisp :noweb no-export :results none -(setq cicadas-paste-pw "3m4x_1uv3r") +(defun read-file-into-string (f) + (with-temp-buffer + (insert-file-contents f) + (buffer-string))) + + + +(setq cicadas-paste-pw (read-file-into-string "~/.bepasty-key")) (defun cicadas-paste-current-buffer () (interactive) -- cgit v1.2.3