[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Semantic & Autocomplete Usage

From: Shelagh Manton
Subject: Re: Semantic & Autocomplete Usage
Date: Tue, 27 Jan 2009 13:22:44 +0000 (UTC)
User-agent: Pan/0.132 (Waxed in Black)

On Tue, 27 Jan 2009 00:44:27 -0800, Les Harris wrote:

> (add-hook 'c-mode-common-hook '(lambda ()
>       (c-toggle-auto-state 1)
>       (linum-mode)
>       (set (make-local-variable 'ac-sources)
>                                   (append '(ac-source-semantic)))
> ;     (set (make-local-variable 'ac-candidate-function) (append
>       'ac-semantic-candidate))
> ))

I wonder if this might work better.

(add-hook 'c-mode-common-hook '(lambda ()
        (c-toggle-auto-state 1)
        (make-local-variable 'ac-sources)
        (setq ac-sources '(ac-source-semantic ;and optionally 
;ac-source-abbrev ac-source-words-in-buffer

This looks more like a successful auto-complete setup I have, though for 
a different mode and with my own homegrown set of keywords.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]