From 7654764713c4265b874b4038bff01046b0cd937e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 10 Oct 2019 21:38:08 -0400 Subject: [PATCH] editor/evil: update docstring for +evil:align* commands --- modules/editor/evil/autoload/ex.el | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/modules/editor/evil/autoload/ex.el b/modules/editor/evil/autoload/ex.el index d7437e4cb..159af43a2 100644 --- a/modules/editor/evil/autoload/ex.el +++ b/modules/editor/evil/autoload/ex.el @@ -57,10 +57,13 @@ ;;; Ex Commands ;;;###autoload (autoload '+evil:align "editor/evil/autoload/ex" nil t) -(evil-define-operator +evil:align (beg end pattern &optional flags) - "Ex interface to `align-regexp'. PATTERN is a vim-style regexp. If BANG, -repeat the alignment for all matches (otherwise just the first match on each -line)." +(evil-define-command +evil:align (beg end pattern &optional flags) + "Ex interface to `align-regexp'. + +PATTERN is a vim-style regexp. FLAGS is an optional string of characters. +Supports the following flags: + +g Repeat alignment on all matches in each line" (interactive "") (align-regexp beg end @@ -68,10 +71,13 @@ line)." 1 1 (memq ?g flags))) ;;;###autoload (autoload '+evil:align-right "editor/evil/autoload/ex" nil t) -(evil-define-operator +evil:align-right (beg end pattern &optional flags) - "Like `+evil:align', except alignments are right-justified. PATTERN is a -vim-style regexp. If BANG, repeat the alignment for all matches (otherwise just -the first match on each line)." +(evil-define-command +evil:align-right (beg end pattern &optional flags) + "Ex interface to `align-regexp' that right-aligns matches. + +PATTERN is a vim-style regexp. FLAGS is an optional string of characters. +Supports the following flags: + +g Repeat alignment on all matches in each line" (interactive "") (align-regexp beg end