Hi all. I'm trying **really** hard to make *elec-pair* work for me without any success. This is a minimal config (Emacs 26.3):
(electric-pair-mode t)
(setq electric-pair--skip-whitespace nil)
(setq electric-pair-skip-self nil)
;;it's hard to indent in reddit
(setq electric-pair-pairs '((?\( . ?\))
(?\[ . ?\])
(?{ . ?})
(?* . ?*)
(?` . ?`)
(?$ . ?$)))
(setq electric-pair-text-pairs '((?\( . ?\))
(?\[ . ?\])
(?{ . ?})
(?* . ?*)
(?` . ?`)
(?$ . ?$)))
Basically the paired character are the brackets, the dollar sign, the backtick and the asterisk. The intended behaviour is that none of these should "skip". (Meaning that typing `}` near another `}` should result in `}}`).
The brackes do not skip, but the other chars **do** skip! For example, if the point is at `$|$` and i type another `$` what i get is `$$|`. The dollar sign gets skipped!
Also, something i notices is that the double quote char (`"`) gets paired even if it is not in my config file. Why is that? How should I configure electric-pair?