From bf1023781b1eb0242d02d41f7a7fd90436b1aeaf Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 12 Dec 2022 10:14:25 +0000 Subject: added a timestamp function --- lisp/mrl-functions.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lisp/mrl-functions.el') diff --git a/lisp/mrl-functions.el b/lisp/mrl-functions.el index 3ba9eff..b9a4d58 100644 --- a/lisp/mrl-functions.el +++ b/lisp/mrl-functions.el @@ -45,5 +45,14 @@ of lines to run through." (insert-char ?\s)) (next-line) (setq lines (- lines 1)))) + +;; that timestamp function +(defun mrl/timestamp () + (interactive) + (let ((m (nth 1 (decode-time) )) + (h (nth 2 (decode-time)))) + (insert (concat (number-to-string h) ":" (number-to-string m) ": ")))) + + (provide 'mrl-functions) ;;; mrl_functions ends here -- cgit v1.2.3