From d8f8ceb1f88724a4d8bb15d4408e07a2baab5053 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 5 Oct 2014 20:51:47 +0900 Subject: [PATCH] emacs.el: Add git-command-prompt-file candidate --- emacs.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 8fe817d..9672d8a 100644 --- a/emacs.el +++ b/emacs.el @@ -928,7 +928,11 @@ found, otherwise returns nil." (add-to-list 'git-command-major-mode-alist '("graph" . fundamental-mode)) (add-to-list 'git-command-major-mode-alist - '("log" . fundamental-mode))) + '("log" . fundamental-mode)) + (or git-command-prompt-file + (setq git-command-prompt-file + (git-command-find-git-ps1 + "/usr/share/git-core/contrib/completion/git-prompt.sh")))) ;; (setq git-command-default-options "-c color.ui=always") (define-key ctl-x-map "g" 'git-command))