[ESS] Fwd: Re: [R] .Rd vs. .R, was: matrix multiplication

Vitalie Spinu spinuvit at gmail.com
Thu Dec 6 20:53:25 CET 2012


  >> Christian Hoffmann <c-w.hoffmann at sunrise.ch>
  >> on Thu, 06 Dec 2012 14:29:02 +0100 wrote:

[...]


  > (3) I found out that M-x R  starts R --no-readline , which I want to avoid!  I
  > want to browse the history in a (mini?) buffer to search and select before
  > execution, using C-up-arrow is cumbersome. I am lazy !

This is comint-previous-input and is also bound to M-p by default, could
not be faster than that. Comint-previous-matching-input-from-input is
much more useful IMO, so I would recommend this in your .emacs:

   (define-key comint-mode-map [(meta ?p)] 'comint-previous-matching-input-from-input)
   (define-key comint-mode-map [(meta ?n)] 'comint-next-matching-input-from-input)

These commands are bound to C-c M-r and C-c M-s by default.

    Vitalie



More information about the ESS-help mailing list