Skip to content

How to manipulate surrounding symbols? #205

Answered by DogLooksGood
jdnavarro asked this question in Q&A
Discussion options

You must be logged in to vote

No, there's not. But Emacs has a lot packages for manipulating parentheses, like smartparens or paredit.

For vanilla Emacs, there's a command called insert-pair.

(global-set-key (kbd "M-(") 'insert-pair)
(global-set-key (kbd "M-\"") 'insert-pair)
(global-set-key (kbd "M-{") 'insert-pair)
(global-set-key (kbd "M-[") 'insert-pair)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jdnavarro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants