config/default: add :rev[erse] command (reverse lines)
This commit is contained in:
parent
170b7f97e7
commit
72b9e80cde
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,11 @@ command from the current directory instead of the project root."
|
||||||
(command (and command (evil-ex-replace-special-filenames command))))
|
(command (and command (evil-ex-replace-special-filenames command))))
|
||||||
(compile command)))
|
(compile command)))
|
||||||
|
|
||||||
|
(evil-define-command doom:reverse-lines (beg end)
|
||||||
|
"Reverse lines between BEG and END."
|
||||||
|
(interactive "<r>")
|
||||||
|
(reverse-region beg end))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Commands
|
;; Commands
|
||||||
|
@ -47,6 +52,7 @@ command from the current directory instead of the project root."
|
||||||
(ex! "iedit" #'evil-multiedit-ex-match)
|
(ex! "iedit" #'evil-multiedit-ex-match)
|
||||||
(ex! "na[rrow]" #'+evil:narrow-buffer)
|
(ex! "na[rrow]" #'+evil:narrow-buffer)
|
||||||
(ex! "retab" #'+evil:retab)
|
(ex! "retab" #'+evil:retab)
|
||||||
|
(ex! "rev[erse]" #'doom:reverse-lines)
|
||||||
;; External resources
|
;; External resources
|
||||||
;; TODO (ex! "db" #'doom:db)
|
;; TODO (ex! "db" #'doom:db)
|
||||||
;; TODO (ex! "dbu[se]" #'doom:db-select)
|
;; TODO (ex! "dbu[se]" #'doom:db-select)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue