Commit a8e0e1d67a99

Vincent Demeester <vincent@sbr.pm>
2026-06-23 11:48:26
fix(emacs): register Git VC backend before ytr :vc form
early-init.el nulls vc-handled-backends during startup and only restores it in after-init-hook, so use-package :vc failed with 'Unknown VC backend Git'. Ensure vc-git is loaded and Git added back before the ytr declaration.
1 parent 203ce77
Changed files (1)
dots
config
emacs
dots/config/emacs/init.el
@@ -3292,6 +3292,9 @@ the appropriate file in ~/.local/share/imapfilter-rules/"
   (proced-format 'medium) ;; can be changed interactively with `F'
   (proced-filter 'user))  ;; can be changed interactively with `f'
 
+;; package-vc (:vc below) needs the Git backend, but early-init.el sets
+;; vc-handled-backends to nil during startup (restored in after-init-hook).
+(eval-and-compile (require 'vc-git) (add-to-list 'vc-handled-backends 'Git))
 (use-package ytr
   :vc (:url "https://github.com/xenodium/ytr" :rev :newest)
   :commands (ytr))