0

For example, this is my snippet in python mode:

# -*- mode: snippet -*-
# name: (
# key: (
# --
($0)

I can expand (to (), but I can not expand a( to a().

How to expand a( to a()?

Big Shield
  • 612
  • 5
  • 15
  • Your question isn't completely clear. Could you add more detail such as "When I do... I expect... but instead... happens"? Also, please specify your emacs version. – Kind Stranger Apr 28 '17 at 08:51

1 Answers1

0

Although I don't use them, there are minor modes like smartparens mode (https://github.com/Fuco1/smartparens) which automatically inserts or deletes the matching brackets which will probably work a lot better than using snippet.

Ian4264
  • 307
  • 2
  • 6