From 0e5fd6169b403ff08e2abf1225f9d7463ecd1519 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 28 Jan 2015 16:52:52 +0100 Subject: [PATCH] Create insert-zim-timestamp defun --- init.el | 1 + zim.el | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 zim.el diff --git a/init.el b/init.el index 1a1018e..703b6d4 100644 --- a/init.el +++ b/init.el @@ -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 diff --git a/zim.el b/zim.el new file mode 100644 index 0000000..e3896e0 --- /dev/null +++ b/zim.el @@ -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))