diff options
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." |
