Can use mc/reverse-regions w/o region or cursors

- will flip sexp at point with the one below it
This commit is contained in:
Magnar Sveen
2013-02-11 07:29:17 +01:00
parent 16add89d29
commit 641eb680ca
5 changed files with 34 additions and 20 deletions

View File

@@ -57,16 +57,14 @@ line point is on."
"Add one cursor to the end of each line in the active region."
(interactive)
(mc/edit-lines)
(mc/execute-command-for-all-fake-cursors 'end-of-line)
(end-of-line))
(mc/execute-command-for-all-cursors 'end-of-line))
;;;###autoload
(defun mc/edit-beginnings-of-lines ()
"Add one cursor to the beginning of each line in the active region."
(interactive)
(mc/edit-lines)
(mc/execute-command-for-all-fake-cursors 'beginning-of-line)
(beginning-of-line))
(mc/execute-command-for-all-cursors 'beginning-of-line))
(provide 'mc-edit-lines)