diff options
author | Yann Herklotz <git@yannherklotz.com> | 2020-10-06 14:44:17 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2020-10-06 14:44:17 +0100 |
commit | b98ee731f32a0c79a314c2f87db679df9170317a (patch) | |
tree | bcdadd4de23d0d80e822788713912679f93d345c /zettelkasten.el | |
parent | e90b1d25c4f9375bec2bf4ca414efbdef7b1cc6e (diff) | |
download | org-zettelkasten-b98ee731f32a0c79a314c2f87db679df9170317a.tar.gz org-zettelkasten-b98ee731f32a0c79a314c2f87db679df9170317a.zip |
Add encoding when saving buffer
Diffstat (limited to 'zettelkasten.el')
-rw-r--r-- | zettelkasten.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zettelkasten.el b/zettelkasten.el index 32b6130..9338540 100644 --- a/zettelkasten.el +++ b/zettelkasten.el @@ -217,6 +217,7 @@ If PARENT is nil, it will not add a link from a PARENT." (filename (zettelkasten--make-filename note))) (with-temp-buffer (set-visited-file-name filename) + (set-buffer-file-coding-system 'utf-8) (insert (concat "#+TITLE: " title (format-time-string "\n#+DATE: %c\n#+TAGS:\n\n"))) (save-buffer)) @@ -329,6 +330,7 @@ If PARENT is nil, it will not add a link from a PARENT." "\n") (with-temp-buffer (set-visited-file-name (concat tag ".org")) + (set-buffer-file-coding-system 'utf-8) (insert (concat "#+TITLE: " tag "\n\n" (apply 'concat |