mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: optimize smartparens rule for headings
This commit is contained in:
@ -768,8 +768,9 @@ compelling reason, so..."
|
|||||||
|
|
||||||
(defun +org-sp-point-at-bol-p (_id action _context)
|
(defun +org-sp-point-at-bol-p (_id action _context)
|
||||||
(and (eq action 'insert)
|
(and (eq action 'insert)
|
||||||
(eq (char-before) ?*)
|
(save-excursion
|
||||||
(sp--looking-back-p "^\\**" (line-beginning-position))))
|
(skip-chars-backward "*")
|
||||||
|
(bolp))))
|
||||||
|
|
||||||
;; make delimiter auto-closing a little more conservative
|
;; make delimiter auto-closing a little more conservative
|
||||||
(sp-with-modes 'org-mode
|
(sp-with-modes 'org-mode
|
||||||
|
Reference in New Issue
Block a user