[Top][All Lists]

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

Semantic keys when needed

From: Andrea Crotti
Subject: Semantic keys when needed
Date: Tue, 12 Oct 2010 15:32:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin)

First I add some global keys set for semantic but given that is not
supported everywhere now I use

--8<---------------cut here---------------start------------->8---
(defun activate-more-semantic-bindings ()
  "add some other nice bindings to modes supported by semantic"
  (local-set-key (kbd "M-n") 'senator-next-tag)
  (local-set-key (kbd "M-p") 'senator-previous-tag)
  (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))
--8<---------------cut here---------------end--------------->8---

and I activate it only with some modes...
But isn't it possible to activate it WHEN semantic is supported?
"semantic-mode" is nil also when is actually supported (c/python) but I
think there must be a way to see where is supported, any hints?

reply via email to

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