From e1aecd6f63bf518564cbc6ff9e365c2958dd5cbe Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 30 Nov 2021 15:28:44 -0800 Subject: [PATCH] =?UTF-8?q?[oni-git-commit]=20Enable=20=E2=80=98electric-p?= =?UTF-8?q?air-local-mode=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With ‘electric-pair-local-mode’ enabled and my inhibit function, this makes for some pretty easy typing of words like “don't”. --- oni-git-commit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oni-git-commit.el b/oni-git-commit.el index b8b2068..bcdf2b1 100644 --- a/oni-git-commit.el +++ b/oni-git-commit.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.1123.003204 +;; Version: 2021.1130.152816 ;; Package-Requires: (git-commit) ;; This program is free software; you can redistribute it and/or modify @@ -26,6 +26,7 @@ ;;; Code: +(add-hook 'git-commit-mode-hook 'electric-pair-local-mode) (add-hook 'git-commit-mode-hook 'electric-quote-local-mode) (add-hook 'git-commit-mode-hook 'refill-mode)