diff options
| author | LLLL Colonq <llll@colonq> | 2024-12-02 17:40:36 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2024-12-02 17:40:36 -0500 |
| commit | 6628a49b953842a3c358bdf3f5e45284480db0c3 (patch) | |
| tree | e0fdff71394c667f01199be997d11fee14ed50c2 /src/wasp-utils.el | |
| parent | 0b95071fe628d91238549b062961e724088d3b8b (diff) | |
Update :5
Diffstat (limited to 'src/wasp-utils.el')
| -rw-r--r-- | src/wasp-utils.el | 6 |
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." |
