Skip to content

Commit

Permalink
[fu] init-git clean flycheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pkryger committed Nov 20, 2024
1 parent 09ff2a4 commit 0cf6108
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions modules/init-git.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,18 @@ These are restored by `exordium-magit-quit-session'.")
exordium-magit-blame
exordium-magit-log-buffer
exordium-magit-log
exordium--magit-fullscreen)
exordium--magit-fullscreen
exordium-projectile-add-known-project)

:autoload (magit-refresh ; required by init-forge.el
magit-git-string) ; required by init-forge.el

:defines (magit-last-seen-setup-instructions)
:init
(defun exordium-projectile-add-known-project
(_repo directory _args)
(projectile-add-known-project directory))

(defun exordium-magit-log-buffer ()
(interactive)
(if (fboundp 'magit-log-buffer-file)
Expand Down Expand Up @@ -140,14 +145,13 @@ with `exordium-magit-quit-session'."
(when (fboundp 'magit-status-internal) ;; check just like in `projectile-vc'
(advice-add 'magit-status-internal :around #'exordium--magit-fullscreen)))

(define-advice magit-clone-regular (:after
(_repo directory _args)
exordium-projectile-add-known-project)
(projectile-add-known-project directory)))
(advice-add 'magit-clone-regular :after #'exordium-projectile-add-known-project))


;;; Don't show "MRev" in the modeline
(when (bound-and-true-p magit-auto-revert-mode)
(diminish 'magit-auto-revert-mode))
(use-package magit-autorevert
:ensure magit
:diminish magit-auto-revert-mode)


;; SMerge Dispatch
Expand All @@ -165,6 +169,9 @@ with `exordium-magit-quit-session'."

(use-package transient
:functions exordium-smerge-dispatch
:autoload (transient-prefix
transient-setup
transient-suffix)
:config
(transient-define-suffix exordium-smerge:undo ()
:description "undo"
Expand Down

0 comments on commit 0cf6108

Please sign in to comment.