Skip to content

Commit

Permalink
Allow insertion of custom ISO date
Browse files Browse the repository at this point in the history
  • Loading branch information
alecigne committed Sep 8, 2023
1 parent d0dc25b commit 04c3fe8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lisp/alc/alc-main.el
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,11 @@ the date DATE."
:chords
(("jh" . crux-switch-to-previous-buffer)))

(defun alc-insert-iso-date (arg)
(interactive "P")
(let ((date (if arg (org-read-date) (format-time-string "%Y-%m-%d"))))
(insert date)))

(defun alc-insert-iso-today ()
(interactive)
(insert (format-time-string "%Y-%m-%d")))
Expand Down

0 comments on commit 04c3fe8

Please sign in to comment.