From: Shelagh Manton <shelagh.manton@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Semantic & Autocomplete Usage
Date: Tue, 27 Jan 2009 13:22:44 +0000 (UTC) [thread overview]
Message-ID: <gln1r4$alm$1@ger.gmane.org> (raw)
In-Reply-To: ZPSdnR1iDoP3VOPUnZ2dnUVZ_sPinZ2d@giganews.com
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)
(linum-mode)
(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.
Shelagh
next prev parent reply other threads:[~2009-01-27 13:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 8:44 Semantic & Autocomplete Usage Les Harris
2009-01-27 13:22 ` Shelagh Manton [this message]
2009-01-27 13:45 ` Shelagh Manton
[not found] ` <mailman.5954.1233063953.26697.help-gnu-emacs@gnu.org>
2009-01-27 14:05 ` Les Harris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gln1r4$alm$1@ger.gmane.org' \
--to=shelagh.manton@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).