all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: dgiglio@iol.it
Cc: help-gnu-emacs@gnu.org
Subject: Re: auto-complete
Date: Tue, 26 Apr 2011 20:41:18 +0200	[thread overview]
Message-ID: <B3F59E03-A53D-446E-94D5-DC30FAA58DB5@gmail.com> (raw)

dgiglio@iol.it (daniele.g) writes:

>
> Can you post here your CEDET conf? 
>
> 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 
    (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---


-- 
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



             reply	other threads:[~2011-04-26 18:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 18:41 Andrea Crotti [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-11-10 21:03 auto-complete haris.bogdanovic
2015-11-11  0:56 ` auto-complete John Mastro
2015-10-15 20:24 auto-complete haris.bogdanovic
2015-10-15 20:36 ` auto-complete Jai Dayal
2015-10-04 20:12 auto-complete Haris Bogdanović
2015-10-06  1:24 ` auto-complete Dmitry Gutov
2015-10-06  1:30 ` auto-complete Emanuel Berg
2011-04-13 23:35 auto-complete daniele.g
2011-04-26  7:01 ` auto-complete Bernardo
2011-04-26 17:26 ` auto-complete Andrea Crotti
2011-04-26 18:07   ` auto-complete daniele.g
2006-02-05 23:14 auto-complete dunnil
2006-02-06  4:16 ` auto-complete Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B3F59E03-A53D-446E-94D5-DC30FAA58DB5@gmail.com \
    --to=andrea.crotti.0@gmail.com \
    --cc=dgiglio@iol.it \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.