mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
lang/org: wrap smartparens config in after!
This commit is contained in:
@ -90,12 +90,13 @@ unfold to point on startup."
|
|||||||
(sp--looking-at-p "\\s-*]")))
|
(sp--looking-at-p "\\s-*]")))
|
||||||
|
|
||||||
;; make delimiter auto-closing a little more conservative
|
;; make delimiter auto-closing a little more conservative
|
||||||
|
(after! smartparens
|
||||||
(sp-with-modes 'org-mode
|
(sp-with-modes 'org-mode
|
||||||
(sp-local-pair "*" nil :unless '(sp-point-after-word-p sp-point-before-word-p sp-point-at-bol-p))
|
(sp-local-pair "*" nil :unless '(sp-point-after-word-p sp-point-before-word-p sp-point-at-bol-p))
|
||||||
(sp-local-pair "_" nil :unless '(sp-point-after-word-p sp-point-before-word-p))
|
(sp-local-pair "_" nil :unless '(sp-point-after-word-p sp-point-before-word-p))
|
||||||
(sp-local-pair "/" nil :unless '(sp-point-after-word-p sp-point-before-word-p +org-sp-point-in-checkbox-p))
|
(sp-local-pair "/" nil :unless '(sp-point-after-word-p sp-point-before-word-p +org-sp-point-in-checkbox-p))
|
||||||
(sp-local-pair "~" nil :unless '(sp-point-after-word-p sp-point-before-word-p))
|
(sp-local-pair "~" nil :unless '(sp-point-after-word-p sp-point-before-word-p))
|
||||||
(sp-local-pair "=" nil :unless '(sp-point-after-word-p sp-point-before-word-p))))
|
(sp-local-pair "=" nil :unless '(sp-point-after-word-p sp-point-before-word-p)))))
|
||||||
|
|
||||||
(defun +org|enable-auto-reformat-tables ()
|
(defun +org|enable-auto-reformat-tables ()
|
||||||
"Realign tables exiting insert mode (`evil-mode')."
|
"Realign tables exiting insert mode (`evil-mode')."
|
||||||
|
Reference in New Issue
Block a user