[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-complete
From: |
Andrea Crotti |
Subject: |
Re: auto-complete |
Date: |
Tue, 26 Apr 2011 20:41:18 +0200 |
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
- auto-complete, daniele.g, 2011/04/13
- Re: auto-complete,
Andrea Crotti <=