[ESS] auto-completion for in buffer variables
Feng Li
m at feng.li
Wed Mar 14 16:40:30 CET 2012
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)
>
> I was actually thinking to add it to the default sources, but something
> stopped me, don't remember what. I will consider adding it by default.
>
> Best,
> Vitalie.
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/
* German - detected
* Chinese (Simplified)
* English
* Swedish
* Chinese (Simplified)
* English
* Swedish
<javascript:void(0);> <#>
More information about the ESS-help
mailing list