aboutsummaryrefslogtreecommitdiffstats
path: root/w3m-session-backup.el
diff options
context:
space:
mode:
Diffstat (limited to 'w3m-session-backup.el')
-rw-r--r--w3m-session-backup.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/w3m-session-backup.el b/w3m-session-backup.el
index edd93f0..ca7192f 100644
--- a/w3m-session-backup.el
+++ b/w3m-session-backup.el
@@ -29,15 +29,16 @@
(defun save-backup ()
"TODO"
- (with-temp-file "~/tmp-w3m-session.txt"
+ (with-temp-file "~/tmp-w3m-session.yml"
(insert
(string-join
(mapcar
(lambda (page)
- (format "%s\n%s"
- (first page)
- (first (last page))))
+ (format "- page_title: %s
+ url: %s"
+ (first (last page))
+ (first page)))
(my-w3m-session-backup))
- "\n\n"))))
+ "\n"))))
(save-backup)