[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add-hook
From: |
Richard Riley |
Subject: |
Re: add-hook |
Date: |
Sun, 05 Jun 2011 12:58:40 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
dgiglio@iol.it (daniele.g) writes:
> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> (Add-hook 'c-mode-common-hook
>> (lambda ()
>> (hs-minor-mode 1)
>> (linum-mode 1)
>> (local-set-key [(control return)]
>> 'semantic-ia-complete-symbol-menu)))
>
> You read my mind.
I think I mentioned it before, but auto-complete has an excellent
completion mechanism which you can share/use across all modes for
consistency and you can easily set the completion sources to use the
semantic completion candidates in addition to the more common sources
like dabbrev.
To wet your whistle, look here
http://cx4a.org/software/auto-complete/
regards
r.