diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-06-24 12:47:00 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-06-24 12:47:00 -0400 |
commit | f287cd2fa41de70753527adbda083c407ee26a87 (patch) | |
tree | b7a3fe7a7cb7bfdb3f27d6511c7f2fa50857e027 /init.el | |
parent | Use fixed-pitch for `org-mode` instead of variable-pitch (diff) | |
download | mmosmacs-f287cd2fa41de70753527adbda083c407ee26a87.tar.gz mmosmacs-f287cd2fa41de70753527adbda083c407ee26a87.tar.bz2 mmosmacs-f287cd2fa41de70753527adbda083c407ee26a87.zip |
Fix format and keybind for inserting date/time
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1327,7 +1327,7 @@ | |||
1327 | ;; [YYYY-MM-DD HH:mm] | 1327 | ;; [YYYY-MM-DD HH:mm] |
1328 | ;; --------------------------------- | 1328 | ;; --------------------------------- |
1329 | 1329 | ||
1330 | (defvar mm/date-time-format "[%Y-%m-%d %H:%M]" | 1330 | (defvar mm/date-time-format "[%Y-%m-%d %a %H:%M]" |
1331 | "Format of the date to insert with `mm/insert-date-time' function. See help of `format-time-string' for alternative formats.") | 1331 | "Format of the date to insert with `mm/insert-date-time' function. See help of `format-time-string' for alternative formats.") |
1332 | 1332 | ||
1333 | (defun mm/insert-date-time () | 1333 | (defun mm/insert-date-time () |
@@ -1335,7 +1335,7 @@ | |||
1335 | (interactive) | 1335 | (interactive) |
1336 | (insert (format-time-string mm/date-time-format (current-time)))) | 1336 | (insert (format-time-string mm/date-time-format (current-time)))) |
1337 | 1337 | ||
1338 | (global-set-key (kbd "C-c d") (lambda () (interactive) (mm/insert-date-time))) | 1338 | (global-set-key (kbd "C-c i d") (lambda () (interactive) (mm/insert-date-time))) |
1339 | 1339 | ||
1340 | 1340 | ||
1341 | ;; --------------------------------- | 1341 | ;; --------------------------------- |