Skip to content

Commit 640959d

Browse files
committed
Merge branch 'aaronbieber-user-confirmation'
2 parents 4085969 + cf7e2d6 commit 640959d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hyde.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,9 @@ user"
465465
(
466466
(drafts-dir (expand-file-name hyde-drafts-dir home))
467467
)
468-
(if (not (file-exists-p drafts-dir))
469-
(make-directory drafts-dir t))))
468+
(if (and (not (file-exists-p drafts-dir))
469+
(yes-or-no-p (format "%s doesn't exist; create it? " drafts-dir)))
470+
(make-directory drafts-dir t))))
470471

471472
(defun hyde/hyde-mode (home)
472473
"The Hyde major mode to edit Jekyll posts.

0 commit comments

Comments
 (0)