lang/org: optimize smartparens rule for headings
This commit is contained in:
parent
b808c4e1ab
commit
30d5eff10a
1 changed files with 3 additions and 2 deletions
|
@ -768,8 +768,9 @@ compelling reason, so..."
|
|||
|
||||
(defun +org-sp-point-at-bol-p (_id action _context)
|
||||
(and (eq action 'insert)
|
||||
(eq (char-before) ?*)
|
||||
(sp--looking-back-p "^\\**" (line-beginning-position))))
|
||||
(save-excursion
|
||||
(skip-chars-backward "*")
|
||||
(bolp))))
|
||||
|
||||
;; make delimiter auto-closing a little more conservative
|
||||
(sp-with-modes 'org-mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue