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