[ESS] Ess history search in Emacs
Kasper Daniel Hansen
khansen at stat.Berkeley.EDU
Tue Jun 26 19:23:55 CEST 2007
On Jun 26, 2007, at 6:30 AM, Dan Davison wrote:
> 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:
The default is M-p (previous) M-n (next)
Kasper
> (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
>
>
>>
>> Thanks
>> Ronaldo
>> --
>>> 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
>>
>> ______________________________________________
>> ESS-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list