In Emacs, How do I configure to delete matching bracket just pressing delete key?

okeigo

I'm currently using Emacs(Spacemacs) in coding.

Spacemacs are using smartparens as a plugin, so close brackets are automatically inserted when I write open brackets.

But, when I delete open brackets using delete button, the close brackets remain there.

Other editor, like Atom or Sublime text, the matching bracket is automatically deleted when I delete open bracket, just pressing delete key. How do I configure this feature in Emacs?

Here are the examples.

Emacs:

emacs

Atom:

atom

Thank you for your advise.

Chandravadan S

You could install the autopairs package.

After installing, you can enable it globally by having this in your .emacs

(require 'autopair) (autopair-global-mode 1)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to detect whether user is just pressing backspace (delete) key in SearchView.setOnQueryTextListener?

From Dev

How do I delete a service key in Bluemix?

From Dev

How do I delete matching text with sed but keep the rest of the line?

From Dev

How do I delete everything not matching the HH:MM pattern?

From Dev

How do I delete subsequent lines after matching a string or digit?

From Dev

How do I delete tables matching a search criterion?

From Dev

How do I check if the user is pressing a key?

From Dev

Emacs, use Delete key to delete selection

From Dev

Emacs, use Delete key to delete selection

From Dev

How do I get the event.keyCode of the delete key?

From Dev

How do I delete a foreign key constraint that doesn't exist?

From Dev

How do I delete the key by knowing its values in flutter?

From Dev

How do I delete a key from a variable with two keys?

From Dev

IntelliJ: Delete Highlighted Portion With Just the Delete Key

From Dev

How do I delete a folder

From Dev

How do I delete a folder

From Dev

How do i delete the header?

From Dev

How do I use pandoc to delete the enclosing tags and just extract a branch of an AST?

From Dev

how to do cascade delete for foreign key in slick

From Dev

How do I check if the left angle bracket key is pressed?

From Dev

how to delete key from list in redis matching a pattern?

From Dev

How do I configure Entity Framework cascade delete to work properly with a one to many relationship?

From Dev

How do I delete lines of a given interval in a file containing a matching word?

From Dev

How do I delete all files within subdirectories matching a given wildcard in Windows?

From Dev

How do I delete lines of a given interval in a file containing a matching word?

From Dev

How do I delete lines matching multiple pattern in text file using bash command?

From Dev

How can I disable emacs delete-selection-mode

From Dev

How can I delete a note written in Emacs howm-mode

From Dev

How do I call a button click by pressing the Enter key in Powershell

Related Related

  1. 1

    How to detect whether user is just pressing backspace (delete) key in SearchView.setOnQueryTextListener?

  2. 2

    How do I delete a service key in Bluemix?

  3. 3

    How do I delete matching text with sed but keep the rest of the line?

  4. 4

    How do I delete everything not matching the HH:MM pattern?

  5. 5

    How do I delete subsequent lines after matching a string or digit?

  6. 6

    How do I delete tables matching a search criterion?

  7. 7

    How do I check if the user is pressing a key?

  8. 8

    Emacs, use Delete key to delete selection

  9. 9

    Emacs, use Delete key to delete selection

  10. 10

    How do I get the event.keyCode of the delete key?

  11. 11

    How do I delete a foreign key constraint that doesn't exist?

  12. 12

    How do I delete the key by knowing its values in flutter?

  13. 13

    How do I delete a key from a variable with two keys?

  14. 14

    IntelliJ: Delete Highlighted Portion With Just the Delete Key

  15. 15

    How do I delete a folder

  16. 16

    How do I delete a folder

  17. 17

    How do i delete the header?

  18. 18

    How do I use pandoc to delete the enclosing tags and just extract a branch of an AST?

  19. 19

    how to do cascade delete for foreign key in slick

  20. 20

    How do I check if the left angle bracket key is pressed?

  21. 21

    how to delete key from list in redis matching a pattern?

  22. 22

    How do I configure Entity Framework cascade delete to work properly with a one to many relationship?

  23. 23

    How do I delete lines of a given interval in a file containing a matching word?

  24. 24

    How do I delete all files within subdirectories matching a given wildcard in Windows?

  25. 25

    How do I delete lines of a given interval in a file containing a matching word?

  26. 26

    How do I delete lines matching multiple pattern in text file using bash command?

  27. 27

    How can I disable emacs delete-selection-mode

  28. 28

    How can I delete a note written in Emacs howm-mode

  29. 29

    How do I call a button click by pressing the Enter key in Powershell

HotTag

Archive