From 6628a49b953842a3c358bdf3f5e45284480db0c3 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 2 Dec 2024 17:40:36 -0500 Subject: Update :5 --- src/wasp-utils.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/wasp-utils.el') diff --git a/src/wasp-utils.el b/src/wasp-utils.el index 78751646..31a17996 100644 --- a/src/wasp-utils.el +++ b/src/wasp-utils.el @@ -92,13 +92,11 @@ Optionally append EXT to the path." (defun w/slurp (path) "Read PATH and return a string." - (with-temp-buffer - (insert-file-contents-literally path) - (buffer-string))) + (f-read-text path 'utf-8)) (defun w/spit (path data) "Write DATA to PATH." - (write-region data nil path)) + (f-write-text data 'utf-8 path)) (defun w/daily-log-path () "Return the path to today's daily log file." -- cgit v1.2.3