From 21de4cf40405360e60f302a32f550c8990ec4856 Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Tue, 3 Jan 2023 14:57:00 -0900 Subject: [PATCH] org-dwim-char: simple insert at empty line --- lisp/mitch-orgstuff.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mitch-orgstuff.el b/lisp/mitch-orgstuff.el index 47e27b2..929bfaf 100644 --- a/lisp/mitch-orgstuff.el +++ b/lisp/mitch-orgstuff.el @@ -132,7 +132,7 @@ Otherwise, insert two of CHAR and put point between them like `electric-pair'." (insert char)))))) ((eq char (char-after)) (right-char)) - ((or (string-match-p (rx bol (or "#" "*")) + ((or (string-match-p (rx bol (or "#" "*" "")) (thing-at-point 'line 'no-properties)) (org-in-block-p org-protecting-blocks) (org-at-property-p))