summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/km-func.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init/km-func.el b/init/km-func.el
index 3366363..be79599 100644
--- a/init/km-func.el
+++ b/init/km-func.el
@@ -45,3 +45,9 @@
(while (< ii strlen)
(insert (elt mycharset (random (length mycharset))))
(setq ii (1+ ii)))))
+
+(defun km/insert-date ()
+ (interactive)
+ (insert (format-time-string "%Y-%m-%d")))
+
+(global-set-key (kbd "C-c d") 'km/insert-date)