Hi emacs friends,
your expertise and wisdom is required.
Please let me first describe my use case.
I'm using electric pair ([https://www.emacswiki.org/emacs/ElectricPair](https://www.emacswiki.org/emacs/ElectricPair)) and my humble init for this is like
(electric-pair-mode 1)
(setq electric-pair-pairs '((?\{ . ?\})
(?\( . ?\))
(?\[ . ?\])
(?\" . ?\")))
Which is sufficient for coding and simple text. For org-mode however I also want to use the "electric pairing" for "\*" (and maybe other markup features in org-mode like "\~" for example).
So I added
(add-hook 'org-mode-hook (lambda ()
(setq electric-pair-pairs
(append electric-pair-pairs '((?\* . ?\*))))))
Problem here is that is now set for all the other modes as well which I don't want.
I only want this to be appended for org-mode buffers nothing else.
Due to a lack of fantasy I don't even know how to approach this.
​
Any help is highly appreciated. Thanks for your time guys!