Nathan Huesken | 28 Jun 17:07 2010

Disable cedet for python

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)
-----------
(Continue reading)

Eric M. Ludlam | 28 Jun 23:37 2010

Re: Disable cedet for python

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)
(Continue reading)


Gmane