浏览代码

Add prefs for new git-command api

pull/1/head
10sr 10 年前
父节点
当前提交
27d1d45d90
共有 1 个文件被更改,包括 19 次插入8 次删除
  1. +19
    -8
      emacs.el

+ 19
- 8
emacs.el 查看文件

@@ -938,14 +938,25 @@ found, otherwise returns nil."
t)
(lazy-load-eval 'git-command
nil
(if (boundp 'git-command-major-mode-alist)
(progn
(add-to-list 'git-command-major-mode-alist
'("di" . diff-mode))
(add-to-list 'git-command-major-mode-alist
'("graph" . fundamental-mode))
(add-to-list 'git-command-major-mode-alist
'("log" . fundamental-mode))))
;; old git-command
(when (boundp 'git-command-major-mode-alist)
(add-to-list 'git-command-major-mode-alist
'("di" . diff-mode))
(add-to-list 'git-command-major-mode-alist
'("graph" . fundamental-mode))
(add-to-list 'git-command-major-mode-alist
'("log" . fundamental-mode)))

;; new git-command
(when (boundp 'git-command-view-command-list)
(add-to-list 'git-command-view-command-list
"graph"))
(when (boundp 'git-command-aliases-alist)
(add-to-list 'git-command-aliases-alist
'("di" . (lambda (options cmd args)
(git-command-exec options
"diff"
args)))))
(or git-command-prompt-file
(setq git-command-prompt-file
(git-command-find-git-ps1


正在加载...
取消
保存