From becb2bf048b84ef918d07f63ebc580e20dd490c1 Mon Sep 17 00:00:00 2001 From: luxick Date: Wed, 13 Aug 2025 07:53:41 +0200 Subject: [PATCH] Add keybind for date string --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.el b/init.el index 6a2e8ba..47480fd 100644 --- a/init.el +++ b/init.el @@ -211,6 +211,13 @@ (other-window 1)) (bind-key "M-2" 'lux/split-below-and-enter) +(defun date (arg) + (interactive "P") + (insert (if arg + (format-time-string "%d.%m.%Y") + (format-time-string "%Y-%m-%d")))) +(bind-key "C-M-d" 'date) + (defun switch-to-previous-buffer () "Switch to previously open buffer.Repeated invocations toggle between the two most recently open buffers." (interactive)