summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2020-03-19 17:34:54 -0700
committerFranck Cuny <franck.cuny@gmail.com>2020-03-19 17:34:54 -0700
commit10a2b6d8059527f6cf5744208a0138d000742b5f (patch)
tree2ad04a066bcef5541c2d91147ebf82de84748349
parentemacs: add a few more modes for git support (diff)
downloademacs.d-10a2b6d8059527f6cf5744208a0138d000742b5f.tar.gz
magit: clean up config by removing unused stuff
or stuff that I don't know what they do.
-rw-r--r--emacs.d/custom/fcuny-git.el13
1 files changed, 4 insertions, 9 deletions
diff --git a/emacs.d/custom/fcuny-git.el b/emacs.d/custom/fcuny-git.el
index f9e985d..eb43040 100644
--- a/emacs.d/custom/fcuny-git.el
+++ b/emacs.d/custom/fcuny-git.el
@@ -11,17 +11,12 @@
 
 (use-package magit
   :ensure t
-  :commands magit-status
+  :mode (("\\COMMIT_EDITMSG\\'" . text-mode)
+         ("\\MERGE_MSG\\'"      . text-mode))
   :after (flyspell)
-  :hook ((magit-mode . hl-line-mode))
-  :bind (("C-x g s" . magit-status))
+  :bind (("C-x g" . magit-status))
   :custom
   (git-commit-summary-max-length 50)
-  (fill-column 72)
-  (magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)
-  (magit-completing-read-function 'ivy-completing-read)
-  :config
-  (when (fcuny/check-work-machine-p)
-    (setq magit-git-executable "/opt/twitter_mde/bin/git")))
+  (fill-column 72))
 
 (provide 'fcuny-git)