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

[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."



reply via email to

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