Tweak `smartparens' setup

This commit is contained in:
Gerard Vermeulen 2024-02-12 09:45:17 +01:00
parent f9a0261546
commit b4fd5335b1

View File

@ -6766,7 +6766,6 @@ contrary to for instance [[https://github.com/Fanael/rainbow-delimiters#readme][
(add-hook symbol #'smartparens-mode))
(dolist (symbol '(emacs-lisp-mode-hook
geiser-repl-startup-hook
go-ts-mode-hook
ielm-mode-hook
lisp-data-mode-hook
@ -6783,7 +6782,7 @@ contrary to for instance [[https://github.com/Fanael/rainbow-delimiters#readme][
("* ||\n[i]" "RET"))))
;; Go has no sexp suffices. This fixes slurping:
;; (|foo).bar -> (foo.bar)
(add-to-list 'sp-sexp-suffix (list #'go-mode 'regexp "")))
(add-to-list 'sp-sexp-suffix (list #'go-ts-mode 'regexp "")))
;; https://xenodium.com/emacs-smartparens-auto-indent/index.html
(defun indent-between-pair (&rest _ignored)