From 72b9e80cde033171cb343ba22ea1778c72a8ee25 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 18 May 2018 01:46:04 +0200 Subject: [PATCH] config/default: add :rev[erse] command (reverse lines) --- modules/config/default/+evil-commands.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/config/default/+evil-commands.el b/modules/config/default/+evil-commands.el index b64a10242..f520be83d 100644 --- a/modules/config/default/+evil-commands.el +++ b/modules/config/default/+evil-commands.el @@ -27,6 +27,11 @@ command from the current directory instead of the project root." (command (and command (evil-ex-replace-special-filenames command)))) (compile command))) +(evil-define-command doom:reverse-lines (beg end) + "Reverse lines between BEG and END." + (interactive "") + (reverse-region beg end)) + ;; ;; Commands @@ -47,6 +52,7 @@ command from the current directory instead of the project root." (ex! "iedit" #'evil-multiedit-ex-match) (ex! "na[rrow]" #'+evil:narrow-buffer) (ex! "retab" #'+evil:retab) +(ex! "rev[erse]" #'doom:reverse-lines) ;; External resources ;; TODO (ex! "db" #'doom:db) ;; TODO (ex! "dbu[se]" #'doom:db-select)