help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Semantic keys when needed


From: Andrea Crotti
Subject: Re: Semantic keys when needed
Date: Sat, 16 Oct 2010 18:21:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin)

Oleksandr Gavenko <gavenko@bifit.com.ua> writes:
> I hope this help:
>
> (unless (featurep 'cedet)
>   (when (or (and (= emacs-major-version 23) (= emacs-minor-version 2))
>                 (>= emacs-minor-version 24))
>     (semantic-mode 1)
>     ))
>
> (when (featurep 'cedet)
>   (global-set-key (kbd "C-c , .") 'semantic-ia-fast-jump)
>   (global-set-key (kbd "C-c , d") 'semantic-ia-show-doc)
>   (global-set-key (kbd "C-c , D") 'semantic-ia-describe-class)
>   (global-set-key (kbd "C-c , c") 'semantic-ia-complete-symbol-menu)
>   )

mm I don't understand
1. (featurep 'cedet) is true also in modes not enabled
2. I would like to avoid global key settings...

What I wanted is to have those keys enabled where they really do something...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]