From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: add-hook Date: Sun, 05 Jun 2011 12:58:40 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87pqmtbvk1.fsf@father.nostromo.wy> <87y61h4rfl.fsf@mithlond.arda> <87tyc5bg1q.fsf@father.nostromo.wy> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307274450 17916 80.91.229.12 (5 Jun 2011 11:47:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2011 11:47:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 05 13:47:26 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QTBnh-0005zE-5L for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jun 2011 13:47:25 +0200 Original-Received: from localhost ([::1]:40082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTBnf-0006l8-PR for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jun 2011 07:47:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTBmO-0006kp-Uh for help-gnu-emacs@gnu.org; Sun, 05 Jun 2011 07:46:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTBmN-00070J-I2 for help-gnu-emacs@gnu.org; Sun, 05 Jun 2011 07:46:04 -0400 Original-Received: from [85.183.18.158] (port=37273 helo=dev) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTBmN-0006zY-Bv for help-gnu-emacs@gnu.org; Sun, 05 Jun 2011 07:46:03 -0400 Original-Received: from shamrock by dev with local (Exim 4.72) (envelope-from ) id 1QTB2b-0001AM-5J for help-gnu-emacs@gnu.org; Sun, 05 Jun 2011 12:58:45 +0200 In-Reply-To: <87tyc5bg1q.fsf@father.nostromo.wy> (daniele g.'s message of "Sat, 04 Jun 2011 20:35:45 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Mail-Copies-To: never Gmane-Reply-To-List: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 85.183.18.158 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81296 Archived-At: dgiglio@iol.it (daniele.g) writes: > Teemu Likonen 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.