From 87753496494f03db10d39fdd96a195a7fabaf2d9 Mon Sep 17 00:00:00 2001 From: Gonzalo Larumbe Date: Thu, 3 Aug 2023 11:20:30 +0200 Subject: [PATCH 1/2] Add support for python-ts-mode --- elpy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elpy.el b/elpy.el index ab7cc69a..374f10fd 100644 --- a/elpy.el +++ b/elpy.el @@ -597,7 +597,7 @@ virtualenv. \\{elpy-mode-map}" :lighter " Elpy" - (unless (derived-mode-p 'python-mode) + (unless (derived-mode-p 'python-mode 'python-ts-mode) (error "Elpy only works with `python-mode'")) (unless elpy-enabled-p (error "Please enable Elpy with `(elpy-enable)` before using it")) From 7826d18bfd808d040511c1644d3d1477b6234553 Mon Sep 17 00:00:00 2001 From: Gonzalo Larumbe Date: Thu, 3 Aug 2023 11:22:45 +0200 Subject: [PATCH 2/2] Add yasnippet snippets for ts-mode --- snippets/python-ts-mode/.yas-parents | 1 + 1 file changed, 1 insertion(+) create mode 100644 snippets/python-ts-mode/.yas-parents diff --git a/snippets/python-ts-mode/.yas-parents b/snippets/python-ts-mode/.yas-parents new file mode 100644 index 00000000..49fb9bbc --- /dev/null +++ b/snippets/python-ts-mode/.yas-parents @@ -0,0 +1 @@ +python-mode