mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add doom:insert-date
This commit is contained in:
11
modules/defuns/defuns-text.el
Normal file
11
modules/defuns/defuns-text.el
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
;;; defuns-text.el
|
||||||
|
|
||||||
|
;;;###autoload (autoload 'doom:insert-date "defuns-text" nil t)
|
||||||
|
(evil-define-command doom:insert-date (beg end &optional format)
|
||||||
|
(interactive "<r><a>")
|
||||||
|
(when (and (evil-visual-state-p) beg end)
|
||||||
|
(kill-region beg end))
|
||||||
|
(insert (format-time-string (or format "%x"))))
|
||||||
|
|
||||||
|
(provide 'defuns-text)
|
||||||
|
;;; defuns-text.el ends here
|
Reference in New Issue
Block a user