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
smartparens version: 20180325.438
Active major-mode: inferior-ess-mode
Smartparens strict mode: nil
Emacs version (M-x emacs-version): GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2018-02-08
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
smartparens
version: 20180325.438major-mode
:inferior-ess-mode
M-x emacs-version
): GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2018-02-08