Add doom:insert-date
This commit is contained in:
parent
811a6c2457
commit
86c9cecc4b
1 changed files with 11 additions and 0 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue