[ESS] re-mapping C-RET in 18.10, avoiding conflict with CUA mode

Vitalie Spinu @p|nuv|t @end|ng |rom gm@||@com
Thu Oct 25 10:00:34 CEST 2018

Hi Paul,

Ess-mode.el changed to ess.el but we are still discussing the change. For now
just replace "ess-mode" with "ess" and it should be fine. The change to
*-visibility-* is needed.

In the future release both ess-mode and ess will work.


>> On Wed, Oct 24 2018 14:58, Paul Johnson via ESS-help wrote:

> I'm running Ubuntu-18.10 and the new packaging for elpa-ess provides
> ESS 18.10.  I still like CUA mode rectangles and so I want to remap
> C-RET to S-RET.

> 5 years ago Vitalie S told me how to do that. The stanza in init.el was:

> ;; Change shortcut "run this line" to use Shift-Return
> ;; Suggested by Vitalie Spinu 2013-09-30 to co-exist with Windows Emacs
> (eval-after-load "ess-mode"
>  '(progn
>    (define-key ess-mode-map [(control return)] nil)
>    (define-key ess-mode-map [(shift return)] 'ess-eval-region-or-line-and-step))
> )

> In Ess 18.10-1 this no longer works, I thought I'd fix by revising:

> (eval-after-load "ess-mode"
>  '(progn
>    (define-key ess-mode-map [(control return)] nil)
>    (define-key ess-mode-map [(shift return)]
> 'ess-eval-region-or-line-visibly-and-step))
> )

> But it does not help.

> Can you advise me?

More information about the ESS-help mailing list