branch: elpa/git-commit commit d122f15edd5147d4c890161819b9589b9ed9ad99 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
git-commit-turn-on-orglink: New function --- lisp/git-commit.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/git-commit.el b/lisp/git-commit.el index 64813af..f6e210b 100644 --- a/lisp/git-commit.el +++ b/lisp/git-commit.el @@ -215,6 +215,7 @@ The major mode configured here is turned on by the minor mode git-commit-setup-changelog-support magit-generate-changelog git-commit-turn-on-auto-fill + git-commit-turn-on-orglink git-commit-turn-on-flyspell git-commit-propertize-diff bug-reference-mode @@ -620,6 +621,13 @@ to `git-commit-fill-column'." (setq-local comment-auto-fill-only-comments nil) (turn-on-auto-fill)) +(defun git-commit-turn-on-orglink () + "Turn on Orglink mode if it is available." + (when (and (boundp 'orglink-match-anywhere) + (fboundp 'orglink-mode)) + (setq-local orglink-match-anywhere t) + (orglink-mode 1))) + (defun git-commit-turn-on-flyspell () "Unconditionally turn on Flyspell mode. Also prevent comments from being checked and