[prev in list] [next in list] [prev in thread] [next in thread]
List: ess-help
Subject: Re: [ESS] auto-completion for in buffer variables
From: Andreas Leha <andreas.leha () med ! uni-goettingen ! de>
Date: 2012-03-14 21:36:12
Message-ID: 8762e6n9v7.fsf () med ! uni-goettingen ! de
[Download RAW message or body]
Feng Li <m@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@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
______________________________________________
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic