Browse Source

Add dired-peek-file

master
10sr 4 years ago
parent
commit
6788491793
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      emacs.el

+ 10
- 0
emacs.el View File

@@ -2828,6 +2828,16 @@ Any output will be written to current buffer."
(when peek-file-mode
(kill-buffer))))))

(with-eval-after-load 'dired
(defun dired-peek-file (&rest files)
"Dired `peak-file' FILES."
(interactive (list (dired-get-file-for-visit)))
(message "AAA %S" files)
(dolist (file files)
(peek-file file)))
(defvar dired-mode-map (make-sparse-keymap))
(define-key dired-mode-map "v" 'dired-peek-file))


;;;;;;;;;;;;;;;;;;;;
;; remember-projectile


Loading…
Cancel
Save