emacs/config/vcs.org
2026-02-13 23:22:54 -06:00

1.2 KiB

VCS

When it comes to git, (which is all that's configured for now), the easy choice is Magit. I've kept the configuration pretty minimal. Only adding forge support really.

(use-package transient
  :defer t)

(use-package magit
  :defer t
  :after (transient)
  :bind (("C-c M" . magit-dispatch))
  :custom
  (magit-repository-directories (list (cons elpaca-repos-directory 1)))
  (magit-diff-refine-hunk 'all)
  :config
  (transient-bind-q-to-quit))

(use-package forge
  :after (magit))

Consult Github Integration

In an effort to reduce switching to the browser, or searching through repositories in general… I'm using consult-gh.

(use-package consult-gh
  :ensure (:host github :repo "armindarvish/consult-gh")
  :after consult
  :config
  (require 'consult-gh-transient))

The package offers embark, and magit-forge support. As I use both of those I'll go ahead and enable it.

(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))