Add keybind for date string

This commit is contained in:
2025-08-13 07:53:41 +02:00
parent 7fd77e0c48
commit becb2bf048

View File

@@ -211,6 +211,13 @@
(other-window 1)) (other-window 1))
(bind-key "M-2" 'lux/split-below-and-enter) (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 () (defun switch-to-previous-buffer ()
"Switch to previously open buffer.Repeated invocations toggle between the two most recently open buffers." "Switch to previously open buffer.Repeated invocations toggle between the two most recently open buffers."
(interactive) (interactive)