瀏覽代碼

Add dired-peek-file

master
10sr 3 年之前
父節點
當前提交
6788491793
簽署人: 10sr GPG Key ID: 7BEC428194130EB2
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      emacs.el

+ 10
- 0
emacs.el 查看文件

@@ -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…
取消
儲存