[ESS] Ess history search in Emacs

Ronaldo Reis Junior chrysopa at gmail.com
Tue Jun 26 19:50:05 CEST 2007


Em Terça 26 Junho 2007 10:30, Dan Davison escreveu:
> Hi Ronaldo,
>
> On Tue, Jun 26, 2007 at 09:53:50AM -0300, Ronaldo Reis Junior wrote:
> > Hi,
> >
> > Now I using Emacs, not more XEmacs. I try to adapt some thinks. One of
> > these is the history completion.
> >
> > In XEmacs I start a command and use Control+up to search this specific
> > command on my R history. Example:
> >
> > m <- Control+Up show only the command start by m <- on my R history.
> >
> > On Emacs it dont work. How to configure this behaviour on ESS+Emacs?
>
> See this post to ess-help from Martin Maechler:
>
> https://stat.ethz.ch/pipermail/ess-help/2006-March/003388.html
>
> It contains an entry to add to your .emacs file. To bind the history-search
> commands to <control>+<up/down>, I changed the key binding lines as
> follows:
>
> (eval-after-load
>     "comint"
>   '(progn
>      (setq comint-scroll-to-bottom-on-output 'others) ; not current
>      ;;=default: (setq comint-scroll-to-bottom-on-input nil)
>      (setq comint-scroll-show-maximum-output t) ;;; this is the key
>      (define-key comint-mode-map [C-up]
>        'comint-previous-matching-input-from-input)
>      (define-key comint-mode-map [C-down]
>        'comint-next-matching-input-from-input)
>
>      (define-key comint-mode-map "\C-a" 'comint-bol)))
>
>
> Boa sorte!
>
> Dan

Dan,

thanks, it work

Inte
Ronaldo

-- 
He's dead, Jim.
		-- McCoy, "The Devil in the Dark", stardate 3196.1
--
> Prof. Ronaldo Reis Júnior
|  .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Ecologia
| : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
| `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
|   `- Fone: (38) 3229-8187 | ronaldo.reis at unimontes.br | chrysopa at gmail.com
| http://www.ppgcb.unimontes.br/ | ICQ#: 5692561 | LinuxUser#: 205366




More information about the ESS-help mailing list