emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/with-editor fda7801 005/140: Add one more remap for evil


From: Jonas Bernoulli
Subject: [nongnu] elpa/with-editor fda7801 005/140: Add one more remap for evil
Date: Fri, 6 Aug 2021 12:51:08 -0400 (EDT)

branch: elpa/with-editor
commit fda78016c05a5fe019dcb54e69a1762a240ae8fa
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>

    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

[Prev in Thread] Current Thread [Next in Thread]