Refactor removal of default smartparens rules for certain modes
This commit is contained in:
parent
148f0a6e34
commit
dc33c72d19
3 changed files with 10 additions and 11 deletions
|
@ -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>"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue