From f287cd2fa41de70753527adbda083c407ee26a87 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sat, 24 Jun 2023 12:47:00 -0400 Subject: Fix format and keybind for inserting date/time --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index f7a06dd..4715660 100644 --- a/init.el +++ b/init.el @@ -1327,7 +1327,7 @@ ;; [YYYY-MM-DD HH:mm] ;; --------------------------------- -(defvar mm/date-time-format "[%Y-%m-%d %H:%M]" +(defvar mm/date-time-format "[%Y-%m-%d %a %H:%M]" "Format of the date to insert with `mm/insert-date-time' function. See help of `format-time-string' for alternative formats.") (defun mm/insert-date-time () @@ -1335,7 +1335,7 @@ (interactive) (insert (format-time-string mm/date-time-format (current-time)))) -(global-set-key (kbd "C-c d") (lambda () (interactive) (mm/insert-date-time))) +(global-set-key (kbd "C-c i d") (lambda () (interactive) (mm/insert-date-time))) ;; --------------------------------- -- cgit v1.2.3