From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: auto-complete Date: Tue, 26 Apr 2011 20:41:18 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303843301 4991 80.91.229.12 (26 Apr 2011 18:41:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2011 18:41:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: dgiglio@iol.it Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 26 20:41:37 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 1QEnCZ-0002iX-KH for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Apr 2011 20:41:35 +0200 Original-Received: from localhost ([::1]:44179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEnCY-0001Nl-AM for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Apr 2011 14:41:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEnCS-0001NX-PZ for help-gnu-emacs@gnu.org; Tue, 26 Apr 2011 14:41:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEnCR-0003Uh-SL for help-gnu-emacs@gnu.org; Tue, 26 Apr 2011 14:41:28 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:53607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEnCR-0003UV-LX for help-gnu-emacs@gnu.org; Tue, 26 Apr 2011 14:41:27 -0400 Original-Received: by wwb39 with SMTP id 39so866260wwb.30 for ; Tue, 26 Apr 2011 11:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:cc:to:mime-version:x-mailer; bh=mUhnUVILU0MEKWdsCqsLBF27ZATKIjTszpDGmB8U/5Q=; b=Tf3vZC/Nc4qXKkzmdhMVyi82sJOjHxCy1iTbUJ39sO2n7fingvXZ3XROJg7g0OeVYo JyTolKXd4AoHQEIlJe/nNcU48rFYiN1IAFWQYm1BeQoITGYb7H1KTlz4Mo+pl4ElbsSO uIsyFjSz6KjXsl6spIy7/E4O39avyS3Qc1tEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; b=ProoJQWDi6k9JfPxjSOWcrLuAFRmID3F3XK1pQ1OeeBdDfwsWvAcOHaWKAx45wY5Up kylfVpPdAc2XLt1gq4Oq2JPNEHY9R9ptEs5BqglEjvfdqps8OxTg8DNOy9WUAJo2kH1d Obq+eBFmPMerQIRLdzdY7Si1PVdTfhtXvQ0sM= Original-Received: by 10.216.6.27 with SMTP id 27mr1078743wem.69.1303843286729; Tue, 26 Apr 2011 11:41:26 -0700 (PDT) Original-Received: from ip1-201.halifax.rwth-aachen.de (ip1-201.halifax.RWTH-Aachen.DE [137.226.108.201]) by mx.google.com with ESMTPS id t5sm24419wes.33.2011.04.26.11.41.20 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Apr 2011 11:41:20 -0700 (PDT) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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:80849 Archived-At: dgiglio@iol.it (daniele.g) writes: > > Can you post here your CEDET conf?=20 > > Thanks. I have this configuration, a bit long and you don't need that much but well here it is: --8<---------------cut here---------------start------------->8--- (defun my-next-tag () (interactive) (semantic-refresh-tags-safe) (senator-next-tag)) (defun activate-more-semantic-bindings () "add some other nice bindings to modes supported by semantic" (interactive) (local-set-key (kbd "M-n") 'my-next-tag) (local-set-key (kbd "M-p") 'senator-previous-tag) (local-set-key "\C-cq" 'semantic-ia-show-doc) ;; TODO: the senator stuff should be enabled only where senator = actually works!! (local-set-key [f6] 'senator-fold-tag-toggle) ;; narrows to the actual function or class analyzed ;; C-x n w to widen again (local-set-key "\C-xnn" 'semantic-narrow-to-tag) (local-set-key "\M-." 'semantic-complete-jump) (local-set-key "\M-?" 'semantic-ia-fast-jump)) (setq semantic-load-turn-everything-on t) (global-ede-mode nil) (setq ede-locate-setup-options '(ede-locate-global ede-locate-locate = ede-locate-idutils)) (dolist=20 (hook '(python-mode-hook c-mode-common-hook emacs-lisp-mode-hook = makefile-mode-hook)) (add-hook hook 'activate-more-semantic-bindings)) (global-semantic-stickyfunc-mode 1) ;; (global-semantic-decoration-mode 1) (global-semantic-highlight-func-mode 1) (global-semantic-highlight-edits-mode 1) (global-semantic-idle-scheduler-mode 1) (global-semantic-idle-summary-mode 1) (global-semantic-mru-bookmark-mode 1) (defun my-c-like-cedet-hook () (local-set-key [(control return)] 'semantic-ia-complete-symbol) (local-set-key "\C-c?" 'semantic-ia-complete-symbol-menu) (local-set-key "\C-c>" 'semantic-complete-analyze-inline) (local-set-key "\C-cj" 'semantic-ia-fast-jump) (local-set-key "\C-cq" 'semantic-ia-show-doc) (local-set-key "\C-cs" 'semantic-ia-show-summary) (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle) (local-set-key "." 'semantic-complete-self-insert) (local-set-key ">" 'semantic-complete-self-insert)) (defun my-cpp-cedet-hook () (local-set-key ":" 'semantic-complete-self-insert)) (global-semanticdb-minor-mode 1) (require 'semanticdb-global) --8<---------------cut here---------------end--------------->8--- --=20 GNU Emacs 24.0.50.1 (x86_64-apple-darwin10.7.0, NS apple-appkit-1038.35) of 2011-04-23 on ip1-201.halifax.rwth-aachen.de