branch: elpa/smartparens commit 920742d42c438aefe783b62ad536bac23fc48e3b Merge: 773f930196 06089b951c Author: Matus Goljer <matus.gol...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #1228 from JimMoen/fix-erlang-config Fix erlang config --- smartparens-config.el | 7 ++++--- smartparens-erlang.el | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/smartparens-config.el b/smartparens-config.el index 981641f5bf..e66ef059b4 100644 --- a/smartparens-config.el +++ b/smartparens-config.el @@ -134,10 +134,11 @@ ID, ACTION, CONTEXT." (eval-after-load it '(require 'smartparens-clojure))) (eval-after-load 'coq-mode '(require 'smartparens-coq)) (eval-after-load 'crystal-mode '(require 'smartparens-crystal)) -(eval-after-load 'elixir-mode '(require 'smartparens-elixir)) -(eval-after-load 'elixir-ts-mode '(require 'smartparens-elixir)) +(--each '(elixir-mode elixir-ts-mode) + (eval-after-load it '(require 'smartparens-elixir))) (eval-after-load 'enh-ruby-mode '(require 'smartparens-ruby)) -(eval-after-load 'erlang-mode '(require 'smartparens-erlang)) +(--each '(erlang-mode erlang-ts-mode) + (eval-after-load it '(require 'smartparens-erlang))) (eval-after-load 'ess '(require 'smartparens-ess)) (eval-after-load 'go-mode '(require 'smartparens-go)) (eval-after-load 'haskell-interactive-mode '(require 'smartparens-haskell)) diff --git a/smartparens-erlang.el b/smartparens-erlang.el index 767ecb4b1f..b92c3230f6 100644 --- a/smartparens-erlang.el +++ b/smartparens-erlang.el @@ -46,10 +46,11 @@ (declare-function erlang-mode "erlang-mode") -(sp-with-modes 'erlang-mode +(sp-with-modes '(erlang-mode erlang-ts-mode) (sp-local-pair "`" "'" - :when '(sp-in-comment-p))) + :when '(sp-in-comment-p)) + (sp-local-pair "<<" ">>") + (sp-local-pair "#{" "}")) (provide 'smartparens-erlang) - ;;; smartparens-erlang.el ends here