diff options
Diffstat (limited to 'custom/jao-custom-blog.el')
-rw-r--r-- | custom/jao-custom-blog.el | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/custom/jao-custom-blog.el b/custom/jao-custom-blog.el index 56f2378..7515440 100644 --- a/custom/jao-custom-blog.el +++ b/custom/jao-custom-blog.el @@ -151,12 +151,11 @@ ;;; Drafts (defun jao-org-static-blog-update-date () (interactive) - (when (y-or-n-p "Update date? ") - (goto-char (point-min)) - (when (re-search-forward "^#\\+date: " nil t) - (delete-line) - (insert (format-time-string "<%Y-%m-%d %H:%M>")) - (save-buffer)))) + (goto-char (point-min)) + (when (re-search-forward "^#\\+date: " nil t) + (org-kill-line) + (insert (format-time-string "<%Y-%m-%d %H:%M>")) + (save-buffer))) (defun jao-org-static-blog-create-new-draft () (interactive) |