From cd12d6361d03bd0f97df9dc1b92e1da995b85178 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 4 Oct 2022 09:27:41 +0200 Subject: [PATCH] Close tags automatically in org mode --- +org.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/+org.el b/+org.el index ef2bfe7..eeb3edd 100644 --- a/+org.el +++ b/+org.el @@ -135,3 +135,12 @@ org-noter-default-heading-title " ")) ;; Increase the latex preview size (setq org-format-latex-options (plist-put org-format-latex-options :scale 3.0)) +;; Close tags automatically +(after! smartparens + (sp-with-modes 'org-mode + (sp-local-pair "*" "*") + (sp-local-pair "_" "_") + (sp-local-pair "/" "/") + (sp-local-pair "~" "~") + (sp-local-pair "=" "=") + (sp-local-pair "$" "$")))