Skip to content

Commit 920742d

Browse files
authored
Merge pull request #1228 from JimMoen/fix-erlang-config
Fix erlang config
2 parents 773f930 + 06089b9 commit 920742d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

smartparens-config.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ ID, ACTION, CONTEXT."
134134
(eval-after-load it '(require 'smartparens-clojure)))
135135
(eval-after-load 'coq-mode '(require 'smartparens-coq))
136136
(eval-after-load 'crystal-mode '(require 'smartparens-crystal))
137-
(eval-after-load 'elixir-mode '(require 'smartparens-elixir))
138-
(eval-after-load 'elixir-ts-mode '(require 'smartparens-elixir))
137+
(--each '(elixir-mode elixir-ts-mode)
138+
(eval-after-load it '(require 'smartparens-elixir)))
139139
(eval-after-load 'enh-ruby-mode '(require 'smartparens-ruby))
140-
(eval-after-load 'erlang-mode '(require 'smartparens-erlang))
140+
(--each '(erlang-mode erlang-ts-mode)
141+
(eval-after-load it '(require 'smartparens-erlang)))
141142
(eval-after-load 'ess '(require 'smartparens-ess))
142143
(eval-after-load 'go-mode '(require 'smartparens-go))
143144
(eval-after-load 'haskell-interactive-mode '(require 'smartparens-haskell))

smartparens-erlang.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@
4646

4747
(declare-function erlang-mode "erlang-mode")
4848

49-
(sp-with-modes 'erlang-mode
49+
(sp-with-modes '(erlang-mode erlang-ts-mode)
5050
(sp-local-pair "`" "'"
51-
:when '(sp-in-comment-p)))
51+
:when '(sp-in-comment-p))
52+
(sp-local-pair "<<" ">>")
53+
(sp-local-pair "#{" "}"))
5254

5355
(provide 'smartparens-erlang)
54-
5556
;;; smartparens-erlang.el ends here

0 commit comments

Comments
 (0)