aboutsummaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-06-24 12:47:00 -0400
committerMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-06-24 12:47:00 -0400
commitf287cd2fa41de70753527adbda083c407ee26a87 (patch)
treeb7a3fe7a7cb7bfdb3f27d6511c7f2fa50857e027 /init.el
parentUse fixed-pitch for `org-mode` instead of variable-pitch (diff)
downloadmmosmacs-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.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.el b/init.el
index f7a06dd..4715660 100644
--- a/init.el
+++ b/init.el
@@ -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;; ---------------------------------