branch: elpa/with-editor
commit fda78016c05a5fe019dcb54e69a1762a240ae8fa
Author: justbur <[email protected]>
Commit: justbur <[email protected]>

    Add one more remap for evil
    
    evil-save-and-close is the command called by the evil ex command :wq.
    Remapping evil ex commands was recently added to evil (as of 5912c95 in
    the evil bitbucket repo).
---
 with-editor.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/with-editor.el b/with-editor.el
index 9f40b38..459b1c8 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -326,6 +326,7 @@ not a good idea to change such entries.")
   (let ((map (make-sparse-keymap)))
     (define-key map "\C-c\C-c"                           'with-editor-finish)
     (define-key map [remap server-edit]                  'with-editor-finish)
+    (define-key map [remap evil-save-and-close]          'with-editor-finish)
     (define-key map [remap evil-save-modified-and-close] 'with-editor-finish)
     (define-key map "\C-c\C-k"                           'with-editor-cancel)
     (define-key map [remap kill-buffer]                  'with-editor-cancel)

Reply via email to