branch: elpa/smartparens commit 684e7722bfdcb63897378756ceb10fc1e76601bd Merge: aaf8099a61 db55eee0c7 Author: Matus Goljer <matus.gol...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #1147 from ssbb/master --- smartparens-config.el | 1 + smartparens-elixir.el | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/smartparens-config.el b/smartparens-config.el index 86febd5cc2..282a974bcc 100644 --- a/smartparens-config.el +++ b/smartparens-config.el @@ -105,6 +105,7 @@ ID, ACTION, CONTEXT." (eval-after-load 'clojure-mode '(require 'smartparens-clojure)) (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)) (eval-after-load 'enh-ruby-mode '(require 'smartparens-ruby)) (eval-after-load 'erlang-mode '(require 'smartparens-erlang)) (eval-after-load 'ess '(require 'smartparens-ess)) diff --git a/smartparens-elixir.el b/smartparens-elixir.el index 170d741236..bf416486c8 100644 --- a/smartparens-elixir.el +++ b/smartparens-elixir.el @@ -27,7 +27,7 @@ (require 'smartparens) -(--each '(elixir-mode) +(--each '(elixir-mode elixir-ts-mode) (add-to-list 'sp-sexp-suffix (list it 'regexp ""))) (defvar sp-elixir-builtins @@ -135,7 +135,7 @@ ID, ACTION, CONTEXT." (indent-according-to-mode) (move-marker m nil nil)))) -(sp-with-modes 'elixir-mode +(sp-with-modes '(elixir-mode elixir-ts-mode) (sp-local-pair "do" "end" :when '(("SPC" "RET" "<evil-ret>")) :skip-match 'sp-elixir-skip-def-p