diff options
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 | ;; --------------------------------- |