Hi,
To disable CEDET for any particular mode, remove the setup hook from
that mode. ie:
C-h v python-mode-hook RET
shows:
python-mode-hook's value is
(wisent-python-default-setup)
so you can add this to your .emacs file:
(remove-hook 'python-mode-hook 'wisent-python-default-setup)
Eric
On 06/28/2010 11:07 AM, Nathan Huesken wrote:
> Hi,
>
> I use cedet when editing C++ files, but would like to disable it for
> python files.
> This is my setup:
> ------------------
> ;;cedet
> (load-file "~/emacs/cedet/common/cedet.el")
> (global-ede-mode t)
>
> (semantic-load-enable-excessive-code-helpers)
> (require 'semantic-ia)
> (setq-mode-local c-mode semanticdb-find-default-throttle
> '(project unloaded system recursive))
> (setq-mode-local c++-mode semanticdb-find-default-throttle
> '(project unloaded system recursive))
> (require 'semantic-gcc)
>
> (defun my-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 "." 'semantic-complete-self-insert)
> (local-set-key ">" 'semantic-complete-self-insert)
> (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle))
> (add-hook 'c-mode-common-hook 'my-cedet-hook)
> -----------
>
> I am unsure, what would I have to change for it not beeing enabled in
> python mode?
>
> Thanks!
> Nathan
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> cedet-semantic mailing list
> cedet-semantic@...
> https://lists.sourceforge.net/lists/listinfo/cedet-semantic
>
|