2

I used to use Spacemacs and it had this nifty feature where a selection could be bracketed with quotes, parentheses or any similar pair characters by simply pressing the character.

So UpdateJob could be converted to "UpdateJob" by selecting the name and pressing ". Or setq-default line-spacing 0.3 could be converted to (setq-default line-spacing 0.3) by selecting the entire text and pressing (

How do I do this with doom-emacs

Drew
  • 75,699
  • 9
  • 109
  • 225
TheGeorgeous
  • 185
  • 10

1 Answers1

2

Emacs 24 came with electric-pair-mode

You can enable it globally with (electric-pair-mode 1)

tinlyx
  • 1,276
  • 1
  • 12
  • 27
Steven
  • 21
  • 2