update packages
This commit is contained in:
@@ -19,12 +19,20 @@
|
||||
;; ivy
|
||||
|
||||
;;; Code:
|
||||
;; see also Diff-Hl (diff-hl-mode) to see VC diff highlighting in fringes.
|
||||
(use-package magit
|
||||
:load-path (lambda() (concat user-emacs-directory "lisp/magit"))
|
||||
:hook (prog-mode . magit-file-mode)
|
||||
:bind (("C-c M-g" . magit-file-dispatch))
|
||||
:config
|
||||
;; (setq magit-completing-read-function 'magit-builtin-completing-read) ;; if ivy-mode is on then it uses it otherwise set to 'ivy-completing-read
|
||||
;; (setq magit-completing-read-function 'magit-ido-completing-read) ;; Use ido to checkout branches. requires ido-completing-read+
|
||||
|
||||
(defun my-magit-fringe-click (evt)
|
||||
"Toggle section visibility in a magit mode buffer."
|
||||
(interactive "e")
|
||||
(mouse-set-point evt)
|
||||
(magit-section-toggle (magit-current-section)))
|
||||
(define-key magit-mode-map [left-fringe mouse-1] 'my-magit-fringe-click)
|
||||
)
|
||||
|
||||
;; On Windows, we must use Git GUI to enter username and password
|
||||
@@ -46,7 +54,7 @@
|
||||
(use-package diff-hl
|
||||
:load-path (lambda() (concat user-emacs-directory "lisp/diff-hl"))
|
||||
:hook (
|
||||
((prog-mode vc-dir-mode) . turn-on-diff-hl-mode)
|
||||
((prog-mode vc-dir-mode org-mode) . turn-on-diff-hl-mode)
|
||||
(magit-pre-refresh . diff-hl-magit-pre-refresh)
|
||||
(magit-post-refresh . diff-hl-magit-post-refresh)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user