feat(emacs): add majjit

This commit is contained in:
2026-02-24 13:47:37 +01:00
parent e427c1866e
commit 210c75cce9

View File

@@ -1388,31 +1388,18 @@ compatible with git repositories. In fact, I pretty much dont use git
anymore, jj (abbreviation of Jujutsu) has almost completely replaced anymore, jj (abbreviation of Jujutsu) has almost completely replaced
git for me. git for me.
It comes to no surprise then that I will use [[https://elpa.gnu.org/packages/vc-jj.html][=vc-jj=]], a Jujutsu I like Magits interface, as you can see in my [[file:./applications.md#magit][Magit]] config.
backend for =vc.el= and =project.el=. Therefore, lets install =majjit=, my slow and scuffed attempt at
bringing some Magit features to jujutsu.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package vc-jj (use-package majjit
:straight (:build t) :defer t
:defer nil) :after magit
#+end_src :straight (majjit :built t
:type git
As mentioned in the packages README, I do need to set these lines in :host nil
my jj config: :repo "https://labs.phundrak.com/phundrak/majjit")
#+begin_src toml :tangle no :custom ((majjit-default-directory "~/code/")))
[ui]
diff-formatter = ":git"
conflict-marker-style = "git"
#+end_src
I also like Magits interface, as you can see in my [[file:./applications.md#magit][Magit]] config.
Therefore, lets install =jujutsu-mode= which attempts to recreate a
Magit-style interface for Jujutsu.
#+begin_src emacs-lisp
(use-package jj-mode
:straight (:build t :host github :repo "bolivier/jj-mode.el")
:defer t)
#+end_src #+end_src
Though, Ill be honest, I generally prefer to use Jujutsu in the Though, Ill be honest, I generally prefer to use Jujutsu in the