Emacs Electric-Pair-Mode
Test text
*This is an illustration of italics in Markdown* "Type with electric pairs" " * ` `` ** ""
(electric-pair-mode 1)
Then customize:
electric-pair-pairs
This is a test
C-q
will override if you want to type a single character
How to jump out of a pair?
(defun skip-to-next-whitespace () "Move point forward to next whitespace character." (interactive) (skip-syntax-forward "^\s")) (global-set-key (kbd "M-1") 'skip-to-next-whitespace)