[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 1126035 004/140: Add remaps for common evil co
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor 1126035 004/140: Add remaps for common evil commands |
Date: |
Fri, 6 Aug 2021 12:51:08 -0400 (EDT) |
branch: elpa/with-editor
commit 112603566fdb32ea2be361e7d859c61d3540be12
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Add remaps for common evil commands
These will only affect evil users. The commands correspond to the ZZ and
ZQ commands in normal state.
Ref https://github.com/justbur/evil-magit/issues/18
---
with-editor.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/with-editor.el b/with-editor.el
index 2e5d5dd..9f40b38 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -324,12 +324,14 @@ not a good idea to change such entries.")
(defvar with-editor-mode-map
(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 "\C-c\C-k" 'with-editor-cancel)
- (define-key map [remap kill-buffer] 'with-editor-cancel)
- (define-key map [remap ido-kill-buffer] 'with-editor-cancel)
- (define-key map [remap iswitchb-kill-buffer] 'with-editor-cancel)
+ (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-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)
+ (define-key map [remap ido-kill-buffer] 'with-editor-cancel)
+ (define-key map [remap iswitchb-kill-buffer] 'with-editor-cancel)
+ (define-key map [remap evil-quit] 'with-editor-cancel)
map))
(define-minor-mode with-editor-mode
- [nongnu] elpa/with-editor fda7801 005/140: Add one more remap for evil, (continued)
- [nongnu] elpa/with-editor fda7801 005/140: Add one more remap for evil, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 19716e9 007/140: remove with-editor.info, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ecff6bb 019/140: with-editor-file-name-history-exclude: new variable, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 4929d43 015/140: release version 2.5.2, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 650e0ad 025/140: manual: include sub-minor part of version in subtitle, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 7b6ac3a 026/140: base the Makefile on the same template used for other packages, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d28d074 008/140: regenerate manual after updating org and ox-texinfo+, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f602113 014/140: make: add bump-versions target, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor aaaeb98 022/140: prefer debianized binary name, if available, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fb1e10a 030/140: Ignore /dir, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1126035 004/140: Add remaps for common evil commands,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor 5bb0b8a 012/140: with-editor-sleeping-editor: document csh complications, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 15b2565 013/140: AUTHORS.md: update list of contributors, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 19201be 021/140: with-editor-locate-emacsclient-1: look for yet another suffix, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor c05420c 020/140: don't use pcase-dolist, not all supported Emacsen have it, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor de4022e 018/140: stop directing users to the issue tracker of magit, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ee41302 029/140: manual: minor improvements and typo fixes, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 2248a63 031/140: bump version, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor eb00831 033/140: with-editor-debug: add link to manual to doc-string, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 9fc0477 040/140: with-editor-output-filter: don't use tramp-make-tramp-file-name, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ae405e9 052/140: with-editor-export-editor: remove unnecessary leftovers, Jonas Bernoulli, 2021/08/06