summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-19 09:38:09 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-19 09:38:09 -0700
commitd433544db867841757cb96b78179fb5afb5d123c (patch)
tree2790945262172e0f0e8e3a5dbdff3a339b39b9b1
parentremoves cruft from the git configuration (diff)
downloademacs.d-d433544db867841757cb96b78179fb5afb5d123c.tar.gz
simplifies even more the git configuration
Change-Id: I28593b53dbb9d65d2bf206c452bf463ddc6b6e26
-rw-r--r--config/init-git.el32
1 files changed, 1 insertions, 31 deletions
diff --git a/config/init-git.el b/config/init-git.el
index 3827b83..3bb63ea 100644
--- a/config/init-git.el
+++ b/config/init-git.el
@@ -10,46 +10,18 @@
 (require 'init-util)
 
 (use-package magit
-  :defer t
   :ensure t
-  :hook (magit-mode . hl-line-mode)
-  :commands (magit-blame
-	     magit-get-current-branch
-             magit-commit
-             magit-diff-unstaged
-             magit-init
-             magit-stage-file
-             magit-status
-             magit-unstage-file
-             magit-blame-mode)
   :bind ("C-x g" . magit-status)
   :custom
-  (magit-buffer-name-format "%x%M%v: %t%x")
-  (magit-diff-options nil)
   (magit-diff-refine-hunk t)
-  (magit-fetch-arguments nil)
   (magit-log-section-commit-count 10)
-  (magit-pre-refresh-hook nil)
-  (magit-process-popup-time 15)
   (magit-clone-default-directory "~/workspace/")
-  (magit-section-initial-visibility-alist '((untracked . hide)))
+  (git-commit-major-mode 'markdown-mode)
   :config
   ;; show ANSI colors in the process buffer, so it's easier to read what's going on
   ;; for some reasons if it's in the `:custom' section it does not get set
   (setq magit-process-finish-apply-ansi-colors t))
 
-(use-package magit-commit
-  :defer t
-  :config
-  (use-package git-commit
-    :custom
-    (git-commit-major-mode 'markdown-mode)
-    (git-commit-setup-hook
-     '(git-commit-save-message
-       git-commit-turn-on-auto-fill
-       git-commit-turn-on-flyspell
-       bug-reference-mode))))
-
 (use-package vc
   :defer t
   :custom
@@ -61,10 +33,8 @@
   :ensure t
   :bind ("C-c Y" . git-link)
   :commands (git-link git-link-commit git-link-homepage)
-
   :custom
   (git-link-open-in-browser t)
-
   :config
   ;; sets up roblox git enterprise as a git-link handler
   (add-to-list 'git-link-remote-alist '("github\\.rblx\\.com" git-link-github))