how to 'block' the prompt

David Brahm brahm at alum.mit.edu
Thu Aug 19 20:07:24 CEST 2004


Sebastian Luque <sluque at mun.ca> wrote:
> I'd like to be able to have the R prompt be unerasable while working on Emacs
> (21.3.1) + ESS (5.2.2) (Debian Linux). Sometimes I accidentally erase the
> prompt and I'm forced to press <return> to get it back...

I have the following in my .emacs, adapted from a posting by Martin Maechler
<maechler at stat.math.ethz.ch>.  The 5th line makes ^A go to the beginning of the
*command* instead of the beginning of the *line*, making it harder to
accidentally erase the prompt.  HTH, and if it does thank Martin!

(eval-after-load "comint" '(progn
  (setq comint-scroll-to-bottom-on-output 'others)
  (define-key comint-mode-map [up] 'comint-previous-matching-input-from-input)
  (define-key comint-mode-map [down] 'comint-next-matching-input-from-input)
  (define-key comint-mode-map "" 'comint-bol-or-process-mark) )
)

-- 
                              -- David Brahm (brahm at alum.mit.edu)




More information about the ESS-help mailing list