From 6851951aafc421e92016674081575dccc897eb3b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 27 Feb 2016 13:47:33 -0500 Subject: [PATCH] Allow :align to accept vim-style regexps --- core/core-evil.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-evil.el b/core/core-evil.el index 71f18edce..3e5bd6fc7 100644 --- a/core/core-evil.el +++ b/core/core-evil.el @@ -232,13 +232,14 @@ (when (evil-ex-p) (evil-ex-parse-global evil-ex-argument))) (evil-define-operator narf:align (&optional beg end bang pattern) + "Ex interface to `align-regexp'. Accepts vim-style regexps." (interactive "") (align-regexp beg end (concat "\\(\\s-*\\)" (if bang (regexp-quote pattern) - (rxt-pcre-to-elisp pattern))) + (evil-transform-vim-style-regexp pattern))) 1 1)) (evil-define-operator narf:evil-ex-global (beg end pattern command &optional invert) :motion mark-whole-buffer