浏览代码

Implement git-worktree-mode-go

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

+ 7
- 0
emacs.el 查看文件

@@ -2232,6 +2232,13 @@ initializing."
(pop-to-buffer bf)))
(defalias 'git-worktree 'git-worktree-open)

(defun git-worktree-mode-go ()
"Go to worktree directory at point."
(interactive)
(let ((id (tabulated-list-get-id)))
(when id
(dired (plist-get id :worktree)))))

(defvar git-worktree-mode-map
(let ((map (make-sparse-keymap)))
(suppress-keymap map)


正在加载...
取消
保存