[ESS] auto-completion for in buffer variables
Andreas Leha
andreas.leha at med.uni-goettingen.de
Wed Mar 14 22:36:12 CET 2012
Feng Li <m at feng.li> writes:
> Exactly as Vitalie said, but I think you may try
>
>> ac-source-words-in-same-mode-buffers
>
> instead of
>
>> ac-source-words-in-buffer
>
>
> Cheers!
>
> Feng
>
> On 03/14/2012 02:43 PM, Vitalie Spinu wrote:
>>>>>> Andreas Leha<andreas.leha at med.uni-goettingen.de>
>>>>>> on Wed, 14 Mar 2012 13:27:12 +0100 wrote:
>>
>> > Since ttt is in my R workspace, I get completion for this when writing
>> > the function.
>> > Completion for aaa is not provided, since aaa is not yet part of the
>> > workspace.
>>
>> Yes you can. It's normal ac configuration.
>>
>> Put this into ess-mode-hook and/or inferior-ess-mode-hook:
>>
>> (add-to-list 'ac-sources 'ac-source-words-in-buffer t)
>>
Hi Vitalie and Feng,
thanks for your help! Works great here.
I am not sure, I really benefit from
ac-source-words-in-same-mode-buffers, though, because most of my work I
do in org mode these days. I will see.
Cheers,
Andreas
More information about the ESS-help
mailing list