parent
8a6bcacb09
commit
8a7eb23ae7
|
@ -221,6 +221,14 @@
|
||||||
(progn
|
(progn
|
||||||
(setq magit-last-seen-setup-instructions "1.4.0"
|
(setq magit-last-seen-setup-instructions "1.4.0"
|
||||||
magit-completing-read-function 'magit-ido-completing-read)
|
magit-completing-read-function 'magit-ido-completing-read)
|
||||||
|
|
||||||
|
(defun spacemacs/magit-status ()
|
||||||
|
"Open a magit status buffer"
|
||||||
|
(interactive)
|
||||||
|
(call-interactively 'magit-status)
|
||||||
|
(evil-surround-mode -1)
|
||||||
|
(evil-define-key 'visual magit-status-mode-map (kbd "s") 'magit-stage-item))
|
||||||
|
|
||||||
;; On Windows, we must use Git GUI to enter username and password
|
;; On Windows, we must use Git GUI to enter username and password
|
||||||
;; See: https://github.com/magit/magit/wiki/FAQ#windows-cannot-push-via-https
|
;; See: https://github.com/magit/magit/wiki/FAQ#windows-cannot-push-via-https
|
||||||
(when (eq window-system 'w32)
|
(when (eq window-system 'w32)
|
||||||
|
@ -228,7 +236,7 @@
|
||||||
(evil-leader/set-key
|
(evil-leader/set-key
|
||||||
"gb" 'magit-blame-mode
|
"gb" 'magit-blame-mode
|
||||||
"gl" 'magit-log
|
"gl" 'magit-log
|
||||||
"gs" 'magit-status
|
"gs" 'spacemacs/magit-status
|
||||||
"gC" 'magit-commit)
|
"gC" 'magit-commit)
|
||||||
(evilify magit-commit-mode magit-commit-mode-map
|
(evilify magit-commit-mode magit-commit-mode-map
|
||||||
(kbd "C-j") 'magit-goto-next-section
|
(kbd "C-j") 'magit-goto-next-section
|
||||||
|
|
Loading…
Reference in a new issue