I noticed that smartparens-strict-mode
is not officially supported in Doom, however for coding in Clojure this feature is mandatory for me. I’ve been using the following configuration:
(after! smartparens
(add-hook 'clojure-mode-hook #'smartparens-strict-mode))
It’s necessary to rebind the DEL
key because even if smartparens-strict-mode
is enabled in the clojure-mode
the DEL
function is bound to evil-delete-backward-char-and-join
which does not respect the strict requirements.
(map! :map clojure-mode-map
"DEL" #'sp-backward-delete-char)
Hope this is helpful to other fellow clojurists!