Refactor removal of default smartparens rules for certain modes

This commit is contained in:
Henrik Lissner 2018-04-18 18:29:48 -04:00
parent 148f0a6e34
commit dc33c72d19
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 10 additions and 11 deletions

View file

@ -3,10 +3,11 @@
(def-package! elixir-mode
:mode "\\.exs?$"
:mode "\\.elixir2$"
:init
;; sp's default elixir rules are obnoxious, so disable them
(provide 'smartparens-elixir)
:config
;; disable standard config; more disruptive than it needs to be
(map-delete sp-pairs 'elixir-mode)
;; only complete the basics
;; ...and only complete the basics
(sp-with-modes 'elixir-mode
(sp-local-pair "do" "end"
:when '(("RET" "<evil-ret>"))