50 lines
1.2 KiB
Org Mode
50 lines
1.2 KiB
Org Mode
* VCS
|
|
|
|
When it comes to git, (which is all that's configured for now), the easy
|
|
choice is [[https://magit.vc/][Magit]]. I've kept the configuration pretty minimal. Only adding
|
|
forge support really.
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package transient
|
|
:defer t)
|
|
|
|
(use-package magit
|
|
:defer t
|
|
:after (transient)
|
|
:bind (("C-c M" . magit-dispatch))
|
|
:custom
|
|
(magit-diff-refine-hunk 'all)
|
|
:config
|
|
(transient-bind-q-to-quit))
|
|
|
|
(use-package forge
|
|
:after (magit))
|
|
#+end_src
|
|
|
|
** Consult Github Integration
|
|
|
|
In an effort to reduce switching to the browser, or searching through
|
|
repositories in general I've chosen to use [[https://github.com/armindarvish/consult-gh][consult-gh]].
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(use-package consult-gh
|
|
:ensure (:host github :repo "armindarvish/consult-gh")
|
|
:after consult
|
|
:config
|
|
(require 'consult-gh-transient))
|
|
#+END_SRC
|
|
|
|
The package offers embark, and magit-forge support. As I use both of
|
|
those I'll go ahead and enable it.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(use-package consult-gh-embark
|
|
:after consult-gh
|
|
:config
|
|
(consult-gh-embark-mode +1))
|
|
|
|
(use-package consult-gh-forge
|
|
:after consult-gh
|
|
:config
|
|
(consult-gh-forge-mode +1))
|
|
#+END_SRC
|