emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit d122f15: git-commit-turn-on-orglink: New functi


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit d122f15: git-commit-turn-on-orglink: New function
Date: Wed, 6 Oct 2021 12:57:33 -0400 (EDT)

branch: elpa/git-commit
commit d122f15edd5147d4c890161819b9589b9ed9ad99
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]