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

Paul Johnson p@u|john32 @end|ng |rom gm@||@com
Fri Oct 26 04:22:47 CEST 2018


Thanks, everybody.  I confirm this works.

I am especially delighted to see my former undergraduate student Pavel
crop up to help the old guy get the job done!

PJ

On Thu, Oct 25, 2018 at 3:00 AM Vitalie Spinu <spinuvit using gmail.com> wrote:
>
>
> 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.
>
>
>   Vitalie
>
> >> 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?



-- 
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