Skip to content

Commit

Permalink
add some date and time insertion functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bostonaholic committed May 2, 2012
1 parent 2601b5c commit ef00139
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .emacs.d/config-defuns.el
Expand Up @@ -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.