Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.81k stars 193 forks source link

Enabling smartparens in modes such as calc-edit-mode #596

Open BernardHurley opened 8 years ago

BernardHurley commented 8 years ago

It would be nice to be able to enable smartparens automatically in some special modes such as calc-edit-mode which are not derived from comint-mode and do not have mode hooks.

Could I suggest a new variable sp-special-modes-list that contains a list of such modes. The various turn-on functions could easily be modified to take this into account.

Fuco1 commented 8 years ago

smartparens-global-mode should do that already. Or you can add setup function to after-change-major-mode-hook. If you want to provide a patch I won't refuse, but this is low priority for me now.