This Emacs package provides commands for inserting pairs of characters.
These commands work in the same way as M-x insert-parentheses
does;
the only difference is they insert other characters: []
, {}
, <>
, …
You may easily install this package with Quelpa:
(quelpa '(insert-pair :fetcher github :repo "alezost/insert-pair.el"))
The manual installation is much less convenient because you need to add (to your =.emacs=) autoloads for all the commands you need, i.e.:
(add-to-list 'load-path "/path/to/insert-pair-dir")
(autoload 'insert-pair-curly-brackets "insert-pair" nil t)
(autoload 'insert-pair-double-quotations "insert-pair" nil t)
(autoload 'insert-pair-grave-accent-quotation "insert-pair" nil t)
...