diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-12-12 10:14:25 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-12-12 10:14:25 +0000 |
commit | bf1023781b1eb0242d02d41f7a7fd90436b1aeaf (patch) | |
tree | 5988b799190a4b720c2f6a75ccf2be563f900b60 /lisp/mrl-functions.el | |
parent | ba35c0e7a25b97cf55f3fa41415ffc306e9e9f1a (diff) |
added a timestamp function
Diffstat (limited to '')
-rw-r--r-- | lisp/mrl-functions.el | 9 |
1 files changed, 9 insertions, 0 deletions
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 |