Browse files

add some date and time insertion functions

  • Loading branch information...
1 parent 2601b5c commit ef00139fbc96c34405f92bd4701454ec2887f72f @bostonaholic bostonaholic committed May 2, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 .emacs.d/config-defuns.el
View
10 .emacs.d/config-defuns.el
@@ -9,4 +9,14 @@
(byte-compile-file user-init-file)
(message "%s compiled" user-init-file)))
+(defun mp-insert-date ()
+ (interactive)
+ (insert (format-time-string "%x")))
+(global-set-key (kbd "C-c i d") 'mp-insert-date)
+
+(defun mp-insert-time ()
+ (interactive)
+ (insert (format-time-string "%X")))
+(global-set-key (kbd "C-c i t") 'mp-insert-time)
+
(provide 'config-defuns)

0 comments on commit ef00139

Please sign in to comment.