[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/smartparens 4e3ca735aa 02/12: Support `ruby-ts-mode`
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/smartparens 4e3ca735aa 02/12: Support `ruby-ts-mode` |
Date: |
Fri, 20 Oct 2023 13:02:09 -0400 (EDT) |
branch: elpa/smartparens
commit 4e3ca735aadc570a5b4b456519000d6048785bf4
Author: Daniel Ma <drailskid@gmail.com>
Commit: GitHub <noreply@github.com>
Support `ruby-ts-mode`
As of Emacs 29, `ruby-mode` and `ruby-ts-mode` are derived from
`ruby-base-mode`. Have smartparens define behavior from the base mode to work
with both
---
smartparens-ruby.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/smartparens-ruby.el b/smartparens-ruby.el
index 237eea9022..31c7d80877 100644
--- a/smartparens-ruby.el
+++ b/smartparens-ruby.el
@@ -293,12 +293,12 @@ MS, ME, MB."
(sp-ruby-method-p "end"))))
(add-to-list 'sp-navigate-skip-match
- '((ruby-mode enh-ruby-mode motion-mode) . sp--ruby-skip-match))
+ '((ruby-base-mode enh-ruby-mode motion-mode) .
sp--ruby-skip-match))
-(dolist (mode '(ruby-mode motion-mode))
+(dolist (mode '(ruby-base-mode motion-mode))
(add-to-list 'sp-sexp-suffix `(,mode syntax "")))
-(sp-with-modes '(ruby-mode enh-ruby-mode motion-mode)
+(sp-with-modes '(ruby-base-mode enh-ruby-mode motion-mode)
(sp-local-pair "do" "end"
:when '(("SPC" "RET" "<evil-ret>"))
:unless '(sp-ruby-in-string-or-word-p sp-in-comment-p)
- [nongnu] elpa/smartparens updated (79a338db11 -> 708f2d6a01), ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens 4e3ca735aa 02/12: Support `ruby-ts-mode`,
ELPA Syncer <=
- [nongnu] elpa/smartparens 9b02ee1ffb 10/12: Merge pull request #1028 from wentasah/improve-sp-pair-doc, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens 7ccf5c7efe 03/12: PR Feedback: inheritance does not work in a couple places, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens 3afd9af104 08/12: Merge pull request #1167 from ROCKTAKEY/add-delete-sexp, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens 448529363a 04/12: Add commands named `sp-(backward-)?-delete-sexp`, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens ba7818a77b 07/12: Merge pull request #1171 from lerouxrgd/master, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens dd22a3e6c5 11/12: Merge pull request #1169 from ROCKTAKEY/fix-kill-ring-bug-on-deletion, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens 17c2e65db5 09/12: Merge pull request #1162 from danielma/patch-1, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens bbfec47ac2 06/12: Add support for rust-ts-mode, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens 273f730764 05/12: `kill-ring` should be `let-bind`ed to nil, ELPA Syncer, 2023/10/20
- [nongnu] elpa/smartparens 708f2d6a01 12/12: fix(kill-ring): prevent `kill-ring-yank-pointer` changes when deleting, ELPA Syncer, 2023/10/20