update magit to v 3.1.1
* add lisp path fo git version * use forge when starting magit in line * remove magithub dependencies Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
;;; Code:
|
||||
(add-to-list 'load-path "~/.emacs.d/site-lisp")
|
||||
(add-to-list 'load-path "~/.emacs.d/site-lisp/magit/lisp")
|
||||
|
||||
(provide '02-load-path)
|
||||
;;; 02-load-path.el ends here
|
||||
|
||||
@@ -22,11 +22,14 @@
|
||||
(magit-section-visibility-indicator nil)
|
||||
(magit-completing-read-function 'ivy-completing-read)
|
||||
(magit-push-always-verify nil)
|
||||
(magit-repository-directories '("~/src/"))
|
||||
;;(magit-repository-directories '("~/src/"))
|
||||
(bind-key "v" 'visit-pull-request-url magit-mode-map)
|
||||
|
||||
:config
|
||||
(add-hook 'after-save-hook 'magit-after-save-refresh-status)
|
||||
;; handle github, gitlab, gitea api
|
||||
(use-package forge
|
||||
:after magit)
|
||||
(use-package git-timemachine
|
||||
:bind (("C-x v t" . git-timemachine)))
|
||||
(use-package git-link
|
||||
@@ -43,18 +46,13 @@
|
||||
;; 'magit-insert-unpushed-to-upstream-or-recent
|
||||
;; 'replace)
|
||||
|
||||
;; load forge to handle github, gitlab, etc
|
||||
;;(require 'forge)
|
||||
(use-package forge
|
||||
:ensure t
|
||||
:after magit)
|
||||
|
||||
(use-package magithub
|
||||
:ensure t
|
||||
:after magit
|
||||
:config
|
||||
(magithub-feature-autoinject t)
|
||||
(setq magithub-clone-default-directory "~/github"))
|
||||
;; forge is the successor of magithub
|
||||
;; (use-package magithub
|
||||
;; :ensure t
|
||||
;; :after magit
|
||||
;; :config
|
||||
;; (magithub-feature-autoinject t)
|
||||
;; (setq magithub-clone-default-directory "~/github"))
|
||||
|
||||
;;(advice-add 'magit-key-mode :filter-args #'magit-key-mode--add-default-options)
|
||||
;; (defun visit-pull-request-url ()
|
||||
|
||||
Reference in New Issue
Block a user