[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape 80029c6892 108/133: Add support for evil-magit
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/evil-escape 80029c6892 108/133: Add support for evil-magit |
|
Date: |
Wed, 3 Jan 2024 21:59:57 -0500 (EST) |
branch: elpa/evil-escape
commit 80029c689217fe43834e13e432ce243b02359aa3
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Add support for evil-magit
Fixes #62
---
evil-escape.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/evil-escape.el b/evil-escape.el
index 16d012ff0c..fe26a85a80 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -202,6 +202,7 @@ with a key sequence."
(or (window-minibuffer-p)
(bound-and-true-p isearch-mode)
(eq 'ibuffer-mode major-mode)
+ (evil-escape--is-magit-buffer)
(and (fboundp 'helm-alive-p) (helm-alive-p))
(or (not (eq 'normal evil-state))
(not (eq 'evil-force-normal-state
@@ -222,6 +223,7 @@ with a key sequence."
(cond
((and (fboundp 'helm-alive-p) (helm-alive-p)) 'helm-keyboard-quit)
((eq 'ibuffer-mode major-mode) 'ibuffer-quit)
+ ((evil-escape--is-magit-buffer) 'evil-escape--escape-with-q)
((bound-and-true-p isearch-mode) 'isearch-abort)
((window-minibuffer-p) 'abort-recursive-edit)
(t (lookup-key evil-normal-state-map [escape]))))
@@ -245,7 +247,7 @@ with a key sequence."
(cond
((bound-and-true-p isearch-mode) 'isearch-abort)
((window-minibuffer-p) 'abort-recursive-edit)
- ((string-match "magit" (symbol-name major-mode))
'evil-escape--escape-with-q)
+ ((evil-escape--is-magit-buffer) 'evil-escape--escape-with-q)
((eq 'ibuffer-mode major-mode) 'ibuffer-quit)
((eq 'emoji-cheat-sheet-plus-buffer-mode major-mode) 'kill-this-buffer)
((eq 'paradox-menu-mode major-mode) 'evil-escape--escape-with-q)
@@ -315,6 +317,10 @@ with a key sequence."
(interactive)
(setq unread-command-events (listify-key-sequence "q")))
+(defun evil-escape--is-magit-buffer ()
+ "Return non nil if the current buffer is a Magit buffer."
+ (string-match "magit" (symbol-name major-mode)))
+
(provide 'evil-escape)
;;; evil-escape.el ends here
- [nongnu] elpa/evil-escape 5c5b1a655c 076/133: Add new defcustom evil-escape-enable-only-for-major-modes, (continued)
- [nongnu] elpa/evil-escape 5c5b1a655c 076/133: Add new defcustom evil-escape-enable-only-for-major-modes, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 17023f4ce4 072/133: Correctly revert modified status of the buffer, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fbf7e6ee35 113/133: Add support for evil-multiedit, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6a9d60c733 087/133: Update README TOC, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fccebfe601 098/133: Add support for emoji-cheat-sheet-plus-buffer, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 09e0622e16 109/133: Add support for image-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape af1a6eb532 110/133: Fix display flickering when using 'global-hl-line-mode', ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 9328f25199 122/133: Fix docstrings, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 8f5b4ccc81 094/133: Revert insert/delete functions, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 9257ed0427 130/133: Don't redisplay and font locking while doing evil-escape, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 80029c6892 108/133: Add support for evil-magit,
ELPA Syncer <=
- [nongnu] elpa/evil-escape 04b6e9c0cf 126/133: Depend on latest Evil release, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1c8fc8b46b 129/133: Reindent code that font-locked highlighted as problematic, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 65756d4a8d 077/133: Make it possible to assign a key binding to evil-escape, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 8f8b58db5e 121/133: Fix compiler warnings, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bdb1e69971 133/133: Correct treemacs integration (#5), ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fd1f59d4ab 131/133: Add non-matching events to unread-post-input-method-events, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape a04305aa74 028/133: typos in comments, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 7e0b99467f 061/133: Use `self-insert-command` instead of `insert`, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 5a8704e6a6 066/133: Add missing docstring, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 509e39d3a0 088/133: Declare function for compiler, ELPA Syncer, 2024/01/03