How can I make smartparens
not to insert a parenthesis pair when the point is at the beginning of a word? I only want it to insert the opening parenthesis.
This is my setup:
(use-package smartparens-config
:ensure smartparens
:diminish smartparens-mode
:config
(progn
(smartparens-global-mode 1)
(show-smartparens-global-mode 1)
(setq
smartparens-strict-mode nil
sp-autoinsert-if-followed-by-word nil
sp-autoskip-closing-pair 'always
sp-base-key-bindings 'paredit
sp-hybrid-kill-entire-symbol nil)
))
As you see, I have set sp-autoinsert-if-followed-by-word
to nil
, as the documentation recommends, but to no avail.
See the animated gif here:
How can I fix this? Thanks.