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

Paul Johnson p@uljohn32 @ending from gm@il@com
Wed Oct 24 21:58:48 CEST 2018


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?

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.



More information about the ESS-help mailing list