Skip to content

Commit 543724c

Browse files
committed
fix(magit-file-icons): load before magit, but not too early
This also fix an issue related to the annoying `track-changes` and `parinfer-rust-mode`. For some reason, when opening Magit from an Elisp buffer, it enables the `emacs-lisp-mode` on the `magit-status` buffer. This causes `parinfer-rust-mode` (and `track-changes`) to be setup on the buffer. After doing some changes in the original Elisp buffer, this triggers `track-changes--tracker-signal` in the `magit-status` buffer, and the latter being read-only will trigger an error. Loading `magit-file-icons`, which loads `magit` and advises it, seems to fix this issue.
1 parent 3aed505 commit 543724c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/me-vc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
;; File icons for Magit based on `nerd-icons'
4848
(use-package magit-file-icons
4949
:straight t
50-
:after magit
50+
:trigger-commands magit magit-status magit-status-here magit-log magit-log-all
5151
:init
5252
(magit-file-icons-mode 1))
5353

0 commit comments

Comments
 (0)