浏览代码

Implement recently view-file

master
10sr 5 年前
父节点
当前提交
0d17960936
签署人:: 10sr GPG 密钥 ID: 7BEC428194130EB2
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. +9
    -1
      emacs.el

+ 9
- 1
emacs.el 查看文件

@@ -2030,13 +2030,21 @@ use for the buffer. It defaults to \"*recetf-show*\"."
("Full Path" 0 t)])))

(defun recently-show-tabulated-find-file ()
"Find-file in `recently-show-tabulated-mode'."
"Find file at point."
(interactive)
(let ((f (tabulated-list-get-id)))
(when f
(recently-show-tabulated-close)
(find-file f))))

(defun recently-show-tabulated-view-file ()
"View file at point."
(interactive)
(let ((f (tabulated-list-get-id)))
(when f
(recently-show-tabulated-close)
(view-file f))))

(defvar recently-show-tabulated-mode-map
(let ((map (make-sparse-keymap)))
(suppress-keymap map)


正在加载...
取消
保存