summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <meyerkya@gmail.com>2013-01-21 13:51:49 -0500
committerKyle Meyer <meyerkya@gmail.com>2013-01-21 13:51:49 -0500
commit9befff56be1d32e12e6e80126b1719edc15040a4 (patch)
tree622779878d62ebb95396e38b015c5fc8339d43ce /init
parent419f2903efb3f606d25cb50123f5a9e9a3dc5ff8 (diff)
downloademacs.d-9befff56be1d32e12e6e80126b1719edc15040a4.tar.gz
func/binding to insert current date
Diffstat (limited to 'init')
-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)