[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dired-preview 0ffc5a77e2 07/10: Put dired-preview-mode-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dired-preview 0ffc5a77e2 07/10: Put dired-preview-mode-map close to the minor mode definition |
Date: |
Thu, 5 Oct 2023 09:58:02 -0400 (EDT) |
branch: externals/dired-preview
commit 0ffc5a77e215a511ce5f1110cbc6243ec689b054
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Put dired-preview-mode-map close to the minor mode definition
---
dired-preview.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dired-preview.el b/dired-preview.el
index 530d01db3e..866483f646 100644
--- a/dired-preview.el
+++ b/dired-preview.el
@@ -110,12 +110,6 @@ views at any time using `dired-preview-hexl-toggle'."
(defvar dired-preview--large-files-alist nil
"Alist mapping previewed large files to buffer names.")
-(defvar dired-preview-mode-map
- (let ((map (make-sparse-keymap)))
- (define-key map (kbd "C-c C-c") #'dired-preview-hexl-toggle)
- map)
- "Key map for `dired-preview-mode'.")
-
(defun dired-preview--get-buffers ()
"Return buffers that show previews."
(seq-filter #'buffer-live-p dired-preview--buffers))
@@ -392,6 +386,12 @@ the preview with `dired-preview-delay' of idleness."
(add-hook 'post-command-hook #'dired-preview-trigger nil :local)
(dired-preview-trigger :no-delay))
+(defvar dired-preview-mode-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map (kbd "C-c C-c") #'dired-preview-hexl-toggle)
+ map)
+ "Key map for `dired-preview-mode'.")
+
;;;###autoload
(define-minor-mode dired-preview-mode
"Buffer-local mode to preview file at point in Dired."
- [elpa] externals/dired-preview updated (bbb2606da9 -> 9c828b1551), ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview 06f85ad818 02/10: Remove alist for 'display-buffer', ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview 7413daa544 04/10: Make dired-preview-chunk-size :type a natnum, ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview 0ee7fc4866 03/10: Declare optional ARG of hexl-mode-exit, ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview b820fd55ac 05/10: Tweak dired-preview-mode-map format, ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview 99053aa4a3 09/10: Reposition dired-preview--add-truncation-message, ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview 2855b739a4 08/10: Move hexl declarations closer to where they are first used, ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview 7c43803727 01/10: Reword dired-preview-start doc string, ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview ddf46ad6ab 06/10: Add dired-preview-mode-map doc string, ELPA Syncer, 2023/10/05
- [elpa] externals/dired-preview 0ffc5a77e2 07/10: Put dired-preview-mode-map close to the minor mode definition,
ELPA Syncer <=
- [elpa] externals/dired-preview 9c828b1551 10/10: Update dired-preview--display-buffer doc string; add TODO, ELPA Syncer, 2023/10/05