aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-10-06 14:44:17 +0100
committerYann Herklotz <git@yannherklotz.com>2020-10-06 14:44:17 +0100
commitb98ee731f32a0c79a314c2f87db679df9170317a (patch)
treebcdadd4de23d0d80e822788713912679f93d345c
parente90b1d25c4f9375bec2bf4ca414efbdef7b1cc6e (diff)
downloademacs-zettelkasten-b98ee731f32a0c79a314c2f87db679df9170317a.tar.gz
emacs-zettelkasten-b98ee731f32a0c79a314c2f87db679df9170317a.zip
Add encoding when saving buffer
-rw-r--r--zettelkasten.el2
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