emacs/config/vcs.org

52 lines
1.2 KiB
Org Mode
Raw Normal View History

2025-10-30 19:05:18 +00:00
* 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)
2025-10-30 19:05:18 +00:00
(use-package magit
:defer t
:after (transient)
2025-12-02 09:10:53 +00:00
:bind (("C-c M" . magit-dispatch))
2025-10-30 19:05:18 +00:00
: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))
#+end_src
2026-02-14 05:22:54 +00:00
** Consult Github Integration
In an effort to reduce switching to the browser, or searching through
repositories in general... I'm using [[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