optimize package loading
This commit is contained in:
@@ -23,11 +23,9 @@
|
||||
|
||||
;; required by magit
|
||||
(use-package git-commit
|
||||
:load-path (lambda() (concat config-dir "lisp/git-commit"))
|
||||
:defer t)
|
||||
|
||||
(use-package magit
|
||||
:load-path (lambda() (concat config-dir "lisp/magit"))
|
||||
: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
|
||||
@@ -41,7 +39,6 @@
|
||||
(define-key magit-mode-map [left-fringe mouse-1] 'my-magit-fringe-click))
|
||||
|
||||
(use-package magit-section
|
||||
:load-path (lambda() (concat config-dir "lisp/magit-section"))
|
||||
:defer t)
|
||||
|
||||
;; On Windows, we must use Git GUI to enter username and password
|
||||
@@ -61,7 +58,6 @@
|
||||
|
||||
;; show diffs in fringes
|
||||
(use-package diff-hl
|
||||
:load-path (lambda() (concat config-dir "lisp/diff-hl"))
|
||||
:hook (((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