Create insert-zim-timestamp defun

This commit is contained in:
Gergely Polonkai 2015-01-28 16:52:52 +01:00
parent b4f12e9be7
commit 0e5fd6169b
2 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,7 @@
(load (concat user-emacs-directory "toggle-window-split.el"))
(load (concat user-emacs-directory "round-number-to-decimals.el"))
(load (concat user-emacs-directory "transpose-windows.el"))
(load (concat user-emacs-directory "zim.el"))
(load (concat user-emacs-directory "clearcase.el"))
(add-hook 'c-mode-hook

6
zim.el Normal file
View File

@ -0,0 +1,6 @@
(defun insert-zim-timestamp ()
(interactive)
(insert (format-time-string "%Y-%m-%dT%H:%M:%S%z"))
(forward-char -2)
(insert ":")
(forward-char 2))