[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape 09e0622e16 109/133: Add support for image-mode
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-escape 09e0622e16 109/133: Add support for image-mode |
Date: |
Wed, 3 Jan 2024 21:59:57 -0500 (EST) |
branch: elpa/evil-escape
commit 09e0622e167c89cd4dfa4e2037aaff0aceee52ad
Author: sbenner <sylvain.benner@ubisoft.com>
Commit: sbenner <sylvain.benner@ubisoft.com>
Add support for image-mode
---
README.md | 1 +
evil-escape.el | 11 ++++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 7304569357..c02c8c8207 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,7 @@ Press quickly `fd` (or the 2-keys sequence of your choice) to:
- quit minibuffer
- abort isearch
- quit ibuffer
+- quit image buffer
- quit compilation buffers
- quit magit buffers
- quit help buffers
diff --git a/evil-escape.el b/evil-escape.el
index fe26a85a80..c1a39117cb 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -37,6 +37,7 @@
;; - quit compilation buffers
;; - abort isearch
;; - quit ibuffer
+;; - quit image buffer
;; - quit magit buffers
;; - quit help buffers
;; - quit apropos buffers
@@ -201,7 +202,8 @@ with a key sequence."
(not evil-escape-inhibit)
(or (window-minibuffer-p)
(bound-and-true-p isearch-mode)
- (eq 'ibuffer-mode major-mode)
+ (memq major-mode '(ibuffer-mode
+ image-mode))
(evil-escape--is-magit-buffer)
(and (fboundp 'helm-alive-p) (helm-alive-p))
(or (not (eq 'normal evil-state))
@@ -223,6 +225,7 @@ with a key sequence."
(cond
((and (fboundp 'helm-alive-p) (helm-alive-p)) 'helm-keyboard-quit)
((eq 'ibuffer-mode major-mode) 'ibuffer-quit)
+ ((eq 'image-mode major-mode) 'quit-window)
((evil-escape--is-magit-buffer) 'evil-escape--escape-with-q)
((bound-and-true-p isearch-mode) 'isearch-abort)
((window-minibuffer-p) 'abort-recursive-edit)
@@ -235,7 +238,8 @@ with a key sequence."
help-mode
ert-results-mode
ert-simple-view-mode
- compilation-mode))) 'quit-window)
+ compilation-mode
+ image-mode))) 'quit-window)
((eq 'undo-tree-visualizer-mode major-mode) 'undo-tree-visualizer-quit)
((and (fboundp 'helm-ag--edit-abort)
(string-equal "*helm-ag-edit*" (buffer-name))) 'helm-ag--edit-abort)
@@ -251,7 +255,8 @@ with a key sequence."
((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)
- ((eq 'gist-list-menu-mode major-mode) 'quit-window)
+ ((memq major-mode '(gist-list-menu-mode
+ image-mode)) 'quit-window)
(t 'evil-normal-state)))
(defun evil-escape--first-key ()
- [nongnu] elpa/evil-escape b0d033794c 089/133: Fix typo in docstring of evil-escape-mode, (continued)
- [nongnu] elpa/evil-escape b0d033794c 089/133: Fix typo in docstring of evil-escape-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1c4b0efc06 100/133: Allow evil-escape in normal state if it makes sense, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bb6f6c254a 069/133: Fix isearch support, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bf41c9e797 068/133: Fix typo in docstring (thanks to person808), ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6790f87d87 081/133: Fix unexpected escape when unordered-key-sequence is non nil, ELPA Syncer, 2024/01/03
- [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 <=
- [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, 2024/01/03
- [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