forked from gabesoft/evil-mc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evil-mc-scratch.el
39 lines (29 loc) · 879 Bytes
/
evil-mc-scratch.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
;;; evil-mc-scratch.el --- Functions used during development
;;; Commentary:
;;; Code:
;; (global-evil-mc-mode 1)
;; (global-evil-mc-mode -1)
;; (evil-mc-mode 1)
;; (evil-mc-mode -1)
(defun evil-mc-clear-buffer-undo-list ()
"Clear the `buffer-undo-list'."
(interactive)
(setq buffer-undo-list nil))
(defun evil-mc-clear-buffer-undo-tree ()
"Clear the `buffer-undo-tree'."
(interactive)
(setq buffer-undo-tree nil))
(defun evil-mc-remove-all-overlays ()
"Remove all overlays."
(interactive)
(remove-overlays)
(setq evil-mc-cursor-list nil))
(defun evil-mc-insert-current-date-at-each-cursor ()
"Insert the current date at each cursor position."
(interactive)
(evil-mc-execute-for-all-cursors
(lambda (cursor)
(insert
(format-time-string "%d/%m/%Y" (current-time))))))
(provide 'evil-mc-scratch)
;;; evil-mc-scratch.el ends here