-
-
Notifications
You must be signed in to change notification settings - Fork 196
Show smartparens mode
show-smartparens-mode provides functionality similar to show-paren-mode, but works for all the user-defined pairs which are recognized by sp-get-sexp.
It is available as a globalized minor mode and is allowed in all modes where smartparens-mode is allowed, that is any mode which is not on the sp-ignore-mode-list.
You can turn it on with (show-smartparens-global-mode t). If you want to only turn it on in specific modes, use after-load hooks for these modes and call (show-smartparens-mode).
Note that the pair-search is somewhat slower than show-paren-mode, which uses C libraries to do the parsing. If you have a very long buffer and a mis-matched pair, this can sometimes result in a noticeable lag (1 second or more) when you place cursor in front/behind this pair. For most of the normal editing business however, the difference is not noticeable.