mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(magit): Remove +magit-optimize-process-calls-h
This commit is contained in:
committed by
Henrik Lissner
parent
313e8fb48b
commit
d60d639efe
@ -164,16 +164,6 @@ FUNCTION
|
|||||||
(right (or (cdr-safe +magit-fringe-size) +magit-fringe-size)))
|
(right (or (cdr-safe +magit-fringe-size) +magit-fringe-size)))
|
||||||
(set-window-fringes nil left right))))))
|
(set-window-fringes nil left right))))))
|
||||||
|
|
||||||
;; An optimization that particularly affects macOS and Windows users: by
|
|
||||||
;; resolving `magit-git-executable' Emacs does less work to find the
|
|
||||||
;; executable in your PATH, which is great because it is called so frequently.
|
|
||||||
;; However, absolute paths will break magit in TRAMP/remote projects if the
|
|
||||||
;; git executable isn't in the exact same location.
|
|
||||||
(add-hook! 'magit-status-mode-hook
|
|
||||||
(defun +magit-optimize-process-calls-h ()
|
|
||||||
(when-let (path (executable-find magit-git-executable t))
|
|
||||||
(setq-local magit-git-executable path))))
|
|
||||||
|
|
||||||
(add-hook! 'magit-diff-visit-file-hook
|
(add-hook! 'magit-diff-visit-file-hook
|
||||||
(defun +magit-reveal-point-if-invisible-h ()
|
(defun +magit-reveal-point-if-invisible-h ()
|
||||||
"Reveal the point if in an invisible region."
|
"Reveal the point if in an invisible region."
|
||||||
|
Reference in New Issue
Block a user