;;; init-magit.el --- Initialize Magit -*- lexical-binding: t -*- ;;; Commentary: ;; Most of the customizations below are intended to improve Magit's performance. ;; https://magit.vc/manual/magit/Performance.html ;;; Code: (unless (package-installed-p 'magit) (package-install 'magit)) (require 'magit) (keymap-global-set "C-S-g" #'magit-status) (setq magit-commit-show-diff nil) (setq magit-diff-highlight-hunk-body nil) (setq magit-diff-highlight-indentation nil) (setq magit-diff-highlight-trailing nil) (setq magit-diff-paint-whitespace nil) (setq magit-diff-refine-hunk nil) (setq magit-log-section-commit-count 0) (setq magit-refresh-status-buffer nil) (setq magit-revision-insert-related-refs nil) (setq magit-section-show-child-count nil) (setq transient-default-level 7) (setq vc-handled-backends nil) (remove-hook 'server-switch-hook #'magit-commit-diff) (defalias 'my-magit-file-untrack #'magit-file-untrack) (provide 'init-magit) ;;; init-magit.el ends here