In emacs ESS, how do I correctly change the keybinding for ess-smart-S-assign?
What I tried is adding
(custom-set-variables
'(ess-smart-S-assign-key ":"))
to my .emacs
, but that made weird things happen: When I press :
, just a normal :
appears. On the other hand, pressing _
once yields <-
as usual, whereas pressing _
a second time then converts this to :
.
The desired behavior would be to be able to use _
as a normal key, with :
being converted to <-
.
I am using the official emacs 24.3 for windows and the latest development version of ESS (14.06).
Here's the docstring for
ess-smart-S-assign-key
:So: put this in your
.emacs
file to get the desired behavior:Kind of ugly, but it works.
The accepted answer didn't work for me, but the following did:
Insert your shortkey choice instead of
C-;
.