summaryrefslogtreecommitdiff
path: root/src/wasp-utils.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-12-02 17:40:36 -0500
committerLLLL Colonq <llll@colonq>2024-12-02 17:40:36 -0500
commit6628a49b953842a3c358bdf3f5e45284480db0c3 (patch)
treee0fdff71394c667f01199be997d11fee14ed50c2 /src/wasp-utils.el
parent0b95071fe628d91238549b062961e724088d3b8b (diff)
Update :5
Diffstat (limited to 'src/wasp-utils.el')
-rw-r--r--src/wasp-utils.el6
1 files changed, 2 insertions, 4 deletions
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."