Search code examples
bindingemacskeymodeess

Emacs ESS keybinding "less than" dash


How to efficiently program in Emacs ESS-mode the key

"<"     "[less than]"

to

"<- "   "[less than][dash][space]"   

Just like the MacOS version of R utilizes.


Solution

  • Perhaps this is ESS version dependent.

    In my version of ESS (12.03), it seems that you can bind ">" to 'ess-insert-S-assign to get what you like.

    Look at the ess- commands available to you (M-x ess-<TAB><TAB> and search in the *Completions* buffer that just popped up for assign) to see which command will be the likely culprit that you should bind to ">".

    If that does not work for you -- perhaps you might need to upgrade.