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.8k stars 192 forks source link

Unable to set smartparens mode by default in iESS anymore #879

Open prosoitos opened 6 years ago

prosoitos commented 6 years ago

Setting (smartparens-global-mode t) used to be enough for me to have smartparens by default in inferior ESS (iESS mode), but this stopped very recently. I don't know if this is due to a recent ESS release or to some changes I made in my settings (not sure what it could be though), but I believe this happened long after (so independently from) the last smartparens release and I am not on the development version.

According to #83, it is actually surprising that it used to work, but that might be because of changes since that issue was active (?)

So, since setting global smartparens mode wasn't working anymore for iESS, I tried (add-hook 'ess-R-post-run-hook (lambda () (smartparens-mode 1))) as suggested in #83, but to no effect.

I also tried (add-hook 'inferior-ess-mode-hook (lambda () (smartparens-mode 1))), which is what I would have written without seeing #83 and that doesn't work either.

Setting smartparens manually (with M-x smartparens-mode) in iESS mode works without any problem.

Environment & version information

prosoitos commented 6 years ago

By the way, I should add: thank you for an absolutely awesome package :slightly_smiling_face:

Fuco1 commented 6 years ago

@jabranham Any ideas here? You're the ESS expert :)