From 37ef8f170b90f43961bb9387672b17152e24404d Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sat, 18 Mar 2023 14:55:41 +0100 Subject: git: stop using gfm-mode as commit major mode --- lisp/init-git.el | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lisp/init-git.el') diff --git a/lisp/init-git.el b/lisp/init-git.el index 9c2a5be..8eb66c8 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -16,12 +16,6 @@ If NOSELECT is non-nil, do not select the window." (interactive) (mpolden/magit-visit-file-other-window t)) -(defun mpolden/gfm-or-text-mode () - "Enable `gfm-mode' if available, otherwise enable `text-mode'." - (if (fboundp 'gfm-mode) - (gfm-mode) - (text-mode))) - (use-package magit :ensure t :init @@ -49,12 +43,6 @@ If NOSELECT is non-nil, do not select the window." :map forge-issue-section-map ([remap magit-delete-thing] . forge-copy-url-at-point-as-kill))) -(use-package git-commit - :ensure t - :init - ;; use gfm-mode as major mode - (setq git-commit-major-mode 'mpolden/gfm-or-text-mode)) - (use-package smerge-mode ;; vc-git-find-file-hook calls this command :commands smerge-start-session -- cgit v1.2.3