From 6c611b5007200e0c4583e39ca8e1e8141295031d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 30 Nov 2021 15:25:10 -0800 Subject: [PATCH] =?UTF-8?q?[oni-org]=20Enable=20=E2=80=98electric-pair-loc?= =?UTF-8?q?al-mode=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With ‘electric-pair-local-mode’ and my inhibit function together I get a pretty reasonable way of typing fancy quotes and regular quotes in words like “don't”. --- oni-org/oni-org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 1943d07..3f8ab71 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.1017.163745 +;; Version: 2021.1130.152454 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti mixed-pitch) ;; This program is free software; you can redistribute it and/or modify @@ -479,6 +479,7 @@ also move point to the start of the heading." (add-hook 'org-mode-hook #'oni-org-set-tag-faces) (add-hook 'org-mode-hook #'oni-org-set-todo-keyword-faces) (add-hook 'org-mode-hook #'oni-org-set-yasnippet-condition) +(add-hook 'org-mode-hook 'electric-pair-local-mode) (add-hook 'org-mode-hook 'electric-quote-local-mode) (add-hook 'org-mode-hook 'flyspell-mode) (add-hook 'org-mode-hook 'mixed-pitch-mode)