diff --git a/modules/config/default/config.el b/modules/config/default/config.el index e1c90c043..cb29aac30 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -215,7 +215,17 @@ (map! :map markdown-mode-map :ig "*" (general-predicate-dispatch nil (looking-at-p "\\*\\* *") - (cmd! (forward-char 2))))))) + (cmd! (forward-char 2))))) + + ;; Removes haskell-mode trailing braces + (after! smartparens-haskell + (sp-with-modes '(haskell-mode haskell-interactive-mode) + (sp-local-pair "{-" "-}" :actions :rem) + (sp-local-pair "{-#" "#-}" :actions :rem) + (sp-local-pair "{-@" "@-}" :actions :rem) + (sp-local-pair "{-" "-") + (sp-local-pair "{-#" "#-") + (sp-local-pair "{-@" "@-"))))) ;;